points by Sesse__ 4 days ago | 0 comments
> 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.)
Aún no hay comentarios.