Interesting thread that reminded me of the relatively new FastMM feature to track down lock contention and cope with it using release stacks:
[WayBack] I try use FastMM4 to tracking bottleneck in allocating memory. I was inspired by this Primož movie: https://www.youtube.com/watch?v=p-5mJyXvmrc When I… – Jacek Laskowski – Google+
The changes by Primož have added these two new conditional defines to the FastMM4 codebase:
LogLockContention
UseReleaseStack
(note this option was not documented in FastMM4Options.inc)
These options are mutually exclusive.
This was the original post it got introduced in [WayBack] The Delphi Geek: Finding Memory Allocation Bottlenecks with FastMM4 and merged into the main repository.
FastMM introduction: [WayBack] The New Memory Manager In BDS 2006 – by Pierre le Riche.
It also taught me about [WayBack] RAMDisk – Software that Accelerates, Protects, Optimizes – Server Memory Products & Services – Dataram.
Primož stores his DCU files there: much faster than SSD, and far less wear on your SSD; see https://youtu.be/p-5mJyXvmrc?t=2675
–jeroen
Video: