CTFE: Less Memory, More Speed!

Walter Bright newshound2 at digitalmars.com
Sat Sep 14 06:52:25 UTC 2019


Rainer and I collaborated on switching CTFE from using the heap to using a 
region allocator, which recycles the memory en masse at CTFE exit. Rainer did 
some benchmarking:

dmd 2.088: 1039 MB in 6.6 seconds
master: 909 MB in 5.0 seconds

https://github.com/dlang/dmd/pull/10396#issuecomment-531454363

and it's looking like a sweet win!


More information about the Digitalmars-d mailing list