Comment by Sesse__
23 days ago
> And wouldn't it be nice to just make them keep one number! That's a size_t and a couple of cycles saved for every malloc()!
You can make them keep basically zero numbers per allocation; most modern mallocs use size classes, and can pack objects of the same size class tightly with no metadata inbetween. (You still need some numbers per page/span and such.)
No comments yet
Contribute on Hacker News ↗