News for hackers. Stuff that matters.
Re:The lost malloc() by Sesse__ on Wednesday November 04, 2026 @12:28PM (#50368752)
> 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.)

There are no comments on this comment yet.