4 ms·
I wonder how many projects will be oblivious because they use their own allocator (eg: we use a modified version of Doug Lea's allocator). If the system alloca
by shaggie76 4y ago
I wonder how many projects will be oblivious because they use their own allocator (eg: we use a modified version of Doug Lea's allocator).
If the system allocator gets slower people might be more inclined to switch to something custom or use locally recycled allocations which may make use-after-free bugs even harder to find.
I'm sympathetic but I wonder if it would be more sensible as an option that's on by default instead.
- Hackbraten 4y agoWhy should the system allocator get slower?
- MarkSweep 4y agoZeroing memory takes longer than doing nothing. Though some chips optimize zeroing memory. For example Intel does, perhaps Apple does as well? https://travisdowns.github.io/blog/2020/05/13/intel-zero-opt.html https://travisdowns.github.io/blog/2020/05/13/intel-zero-opt...
- saagarjha 4y agoApple uses dc zva on ARM.
- saagarjha 4y agoThere is apparently no performance degradation due to other improvements in malloc.