mORMot 2 Generics Collections: Fast, Small & Scalable
A recent discussion on Delphi-PRAXiS highlighted this issue through a comprehensive benchmark comparing the Delphi RTL, Spring4D, and mORMot 2 generics collections.
Trying to compile 500 records + 2000 generic specializations shows very clearly why mORMot 2 generics collections are an excellent choice for serious Delphi - or FPC - projects.
mORMot 2 Highlights
- Extremely fast compilation even with thousands of specializations
- Smallest binary size
- Very reasonable memory consumption during compilation
- Thread-safe dictionaries with advanced features like JSON/binary serialization out of the box
- Delphi and FPC compatibility
If your project suffers from long compile times or huge executable size because of heavy generic usage — mORMot 2 collections (mormot.core.collections) is currently the most scalable and efficient solution available in the Delphi ecosystem.
Give it a try — the difference is usually noticeable from the first clean build.
Thanks Waldemar for the insights, and also thanks Valerii for the adorable marmot in the above picture.
Reference Material

If you want to go further:








