Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
runtime: suboptimal size classes #17619
It looks like we're allocating objects to size classes suboptimally. Here's an example:
the 4864 size class can fit 3 objects in a 2-page span. (Pages are 8192 bytes.)
But consider the size 4864+256=5120. It can also fit 3 objects in a 2-page span. The space usage for that is better than using the 5632 size class. (5461.3 bytes/obj, compared to 6144 bytes/obj).
So the 4864 size class should be 5120. Actually, even 4864+2*256=5376 works.
I'm sure there are more examples, this is just the one I investigated first.
Okay. :) I'm good with statically generating the size classes, though. I've always found it a little odd that we do this at runtime (and annoying, since I can't just look at the size class table), and your static generation CL looks like it has some other nice benefits.
Please retain the static sizeclass generation, I think that's a useful
On Fri, Oct 28, 2016 at 2:22 AM, Austin Clements firstname.lastname@example.org