dysfun@treehouse.systems ("gaytabase") wrote:
i don't think there's much call for having data more than cacheline-aligned unless it's very aligned indeed (i.e. pages). so we can consider regions for multiples of 16, 32 and 64 bytes and get natural alignment on them. this seems like comparable waste to an allocator.
then we can use a very old trick indeed and compress two of these into one region by allocating from both ends until they meet in the middle. in the old days it used to be the stack and the heap meeting in the middle, of course.