pleriche / FastMM4

A memory manager for Delphi and C++ Builder with powerful debugging facilities
447 stars 158 forks source link

don't allocate large blocks with MEM_TOP_DOWN by default #74

Closed gabr42 closed 5 years ago

gabr42 commented 5 years ago

As it turns out (analysis here: https://www.thedelphigeek.com/2019/04/fastmm4-large-memory.html), allocating memory blocks with MEM_TOP_DOWN can bring in 5-15% penalty.

I'm proposing adding conditional symbol AllocateLargeBlocksTopDown. If it is defined, large blocks are allocated with MEM_TOP_DOWN, otherwise they are not.

By default, AllocateLargeBlocksTopDown should not be defined.

gabr42 commented 5 years ago

Sorry, bad request, a ton of files was included.

rrezino commented 5 years ago

@gabr42 why was the asm version removed ?