2 ms·
> If you’re hitting the allocator (slow!) then odds are pretty good those bytes aren’t fresh in the cache. Incidentally, this is a great reason why GCs are use
by chrisseaton 8y ago
> If you’re hitting the allocator (slow!) then odds are pretty good those bytes aren’t fresh in the cache.
Incidentally, this is a great reason why GCs are useful even if you don't need the automatic memory management - a GC can allocate from memory that is always in cache, and they can do it in a couple of cycles.
- deleted 8y ago[deleted]