5 ms·
> The effect is that out of the box a 1 MB region size will be used, while for the fixed heap case the region size will be 2 MB. It might sound like a small dif
by blattimwind 6y ago
> The effect is that out of the box a 1 MB region size will be used, while for the fixed heap case the region size will be 2 MB. It might sound like a small difference, but the benchmark uses a significant amount of large objects that need special treatment when using 1 MB regions. This special treatment leads to a lot of memory that can’t be used, which in turn leads full collections and a poor overall experience.
This means the same problem as before can be observed, you'll just need slightly bigger objects to get there.
- winkeltripel 6y agoThat's what I thought too. perhaps this should be profiled and adjusted on-the-fly (probably a massive undertaking)?
- ashtonkem 6y agoThe Java way is more about selecting a reasonable default, and then exposing a tuning parameter for those whose use case falls well off of what was designed for.