This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
op.c: Make slabs sizes powers of two
authorFather Chrysostomos <sprout@cpan.org>
Thu, 12 Jul 2012 21:34:03 +0000 (14:34 -0700)
committerFather Chrysostomos <sprout@cpan.org>
Thu, 12 Jul 2012 21:34:03 +0000 (14:34 -0700)
commitaf7751f6652f1fb8efc5c0fe424de739fc30a332
treed937958f3f957dbff77f84f37bb41c591c943948
parent90519d0fd74b0bc30c7b0f455caef9f51f7fea12
op.c: Make slabs sizes powers of two

It wasn’t exactly doubling the size of the previous slab, but making
it two less than that.  I’m assuming that malloc implementations round
things up to powers of two, and trying to take advantage of that, so
we don’t have wasted gaps at the ends of slabs.
op.c