3 ms·
Can confirm for perl. We are doing the very same. It's a huge win. Differences: We never free empty pools. Our arenas are just single linked lists, no need f
by rurban 7y ago
Can confirm for perl. We are doing the very same. It's a huge win.
Differences:
We never free empty pools.
Our arenas are just single linked lists, no need for the prev.
Notes:
For a statically compiled perl the biggest win is to avoid arena allocation (mmap) at all. Data and code is made static. That's around 10-20% of the runtime (for shortrunning programs).
Also we rarely free at the end. The OS does it much better than free(). Only the mandatory DESTROY calls and FileIO finalizers are executed.