evanw / evanw/buddy-malloc

Storage of size of block instead of bucket

Open
#1 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C
Stars
119
Forks
27
PR merge metrics
No merged PRs in 30d

Description

I just wanted to know if there is any specific reason in the choice of storing the size of the requested malloc() block in the header, instead of directly storing the bucket this buddy would fall into (so we don't have to recompute it with a loop).

Thanks!

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.