I used j*2+16 because it compiles into a single instruction. ScopeBuffer allocations are anticipated to be very short lived, so optimizing malloc patterns are unlikely to pay off. Also, there are so many different malloc implementations out there that I'm not sure it would be fruitful to tune it for one.