about summary refs log tree commit diff
path: root/src/test/rustdoc-js-std/enum-option.js
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2020-05-16 10:32:46 +0000
committerbors <bors@rust-lang.org>2020-05-16 10:32:46 +0000
commit31add7e60709445617ab54a69f6f21cfcb2e3122 (patch)
tree607f8911bd26fb7f4269f0f6f1e208fcb73d8a5b /src/test/rustdoc-js-std/enum-option.js
parent584252bfb053149b1405da0951cd855561694990 (diff)
parent40d4868b3949c60de42e400baabe281a00a8c615 (diff)
downloadrust-31add7e60709445617ab54a69f6f21cfcb2e3122.tar.gz
rust-31add7e60709445617ab54a69f6f21cfcb2e3122.zip
Auto merge of #71872 - nnethercote:less-aggressive-arena-growth, r=oli-obk
Be less aggressive with `DroplessArena`/`TypedArena` growth.

`DroplessArena` and `TypedArena` use an aggressive growth strategy: the first chunk is 4 KiB, the second is 8 KiB, and it keeps on doubling indefinitely. DHAT profiles show that sometimes this results in large chunks (e.g. 16-128 MiB) that are barely filled.

This commit changes things so that the doubling stops at 2 MiB. This is large enough that chunk allocations are still rare (you might get 100s instead of 10s of them) but avoids lots of unused space in the worst case. It makes the same change to `TypedArena`, too.
Diffstat (limited to 'src/test/rustdoc-js-std/enum-option.js')
0 files changed, 0 insertions, 0 deletions