I have put uses FastMM in the dpr file of EXE which calls a DLL using LoadLibrary. So my question is should I put uses FastMM in DLL dpr project file as well?
I just want to maximize the performance gain by simply using a better memory manager e.g. FastMM in a multithreading application. I am also looking into alternative MM such as ScaleMM. The EXE is being invoked by a .NET application and the Delphi EXE calls the DLL (actually it is a COM+ dll) that does some floating point computation
I tried ScaleMM this afternoon and it turns out that ScaleMM uses more memory than FastMM4. Two unit tests failed because of 'Out of Memory' if using ScaleMM. However, with FastMM4 (version 4.991), there is no problem.
I didn't notice obvious speed gain using ScaleMM other than the 'out-of-memory' error. Thus I decided to revert back to FastMM4.
My question is, what is the benefit of using [shared memory manager] both FastMM4 in EXE and DLL (options, ShareMMIfLibrary etc)?