3 ms·
Looks like it's 10.7 kLOC whereas mimalloc is 8.8 kLOC, so it's not much more complex at that...amount of engineering, I guess. Also spotted that the mimalloc R
by hayley-patton 3y ago
Looks like it's 10.7 kLOC whereas mimalloc is 8.8 kLOC, so it's not much more complex at that...amount of engineering, I guess. Also spotted that the mimalloc README says
> Free-ing from another thread can now be a single CAS without needing sophisticated coordination between threads
which may not be the worst thing in the world; depends on what your app does.
- kragen 3y agomusl's malloc is 0.6 kloc and right now it has terrible multicore scaling, and i'm wondering how simply that can be fixed afaik neither c nor posix provides portable cas, so while that's probably the best performing solution, it's probably not suitable for musl discussion in https://news.ycombinator.com/item?id=38619599 https://news.ycombinator.com/item?id=38619599
- hayley-patton 3y agoC11 has atomics and CAS, is C11 okay?
- kragen 3y agohm! interesting!