This should significantly reduce the size of large arenas. Previously, a large arena would nearly double in size if the most recent block filled up. This could end up wasting large amounts of memory. After this CL, we will waste at most the max block size, which defaults to 32k. This more or less matches the behavior of the C++ arena. PiperOrigin-RevId: 647802280pull/17280/head
parent
e08414ca10
commit
d3172f5d73
3 changed files with 47 additions and 1 deletions
Loading…
Reference in new issue