4 ms·
The fastest memory allocator is no-allocation allocation. D has some cool methods for doing that, like the chain template and voldemort types. For example, cha
by WalterBright 6y ago
The fastest memory allocator is no-allocation allocation. D has some cool methods for doing that, like the chain template and voldemort types.
For example, chain can be used to "concatenate" two arrays without allocating a byte.
https://dlang.org/phobos/std_range.html#chain https://dlang.org/phobos/std_range.html#chain
https://wiki.dlang.org/Voldemort_types https://wiki.dlang.org/Voldemort_types