3 ms·
> preferring to allocate fixed-size buffers on the stack When working set is measured in megabytes, it fits in L3 cache of modern CPUs. Memory layout is not to
by Const-me 6y ago
> preferring to allocate fixed-size buffers on the stack
When working set is measured in megabytes, it fits in L3 cache of modern CPUs. Memory layout is not too important for these programs.
> most GC'd languages that aren't java have crappy GCs
C# is good too. It also has value types, native memory spans, SIMD intrinsics, and stackalloc.
- PixelOfDeath 6y agoDon't forget that good cache locality also can cause data being pulled into cache that the prefetcher did know nothing about. I can create you a shitty linked list that fits perfectly in L3, but still has terrible cold cache performance because each individual cacheline has to be pulled in one by one.
- Const-me 6y agoIndeed, there're edge cases. Still, how many people using linked lists on the stack?