3 ms·
In case you weren't aware, this is a common enough technique for it to actually have a name: bump allocation. It's very useful in short lived programs with boun
by troutwine 6y ago
In case you weren't aware, this is a common enough technique for it to actually have a name: bump allocation. It's very useful in short lived programs with bounded allocations, for the exact reason you outlined.
- MaxBarraclough 6y agoThe dmd D compiler adopted this approach and got a significant performance boost. [0] Looks like it still uses a pointer-bump allocator today. [1] [0] https://web.archive.org/web/20190126213344/https://www.drdobbs.com/cpp/increasing-compiler-speed-by-over-75/240158941 https://web.archive.org/web/20190126213344/https://www.drdob... [1] https://github.com/dlang/dmd/blob/025caed79/src/dmd/root/rmem.d#L153 https://github.com/dlang/dmd/blob/025caed79/src/dmd/root/rme...