Bumping down is significantly faster than bumping up. This is ABI breaking, but the ABI of pmr::monotonic_buffer_resource was only stabilized in this release cycle, so we can still change it.
For a more detailed explanation why bumping down is better, see https://fitzgeraldnick.com/2019/11/01/always-bump-downwards.html.
Details
Details
- Reviewers
ldionne Mordante var-const huixie90 - Group Reviewers
Restricted Project - Commits
- rG549a5fd0b789: [libc++] Make pmr::monotonic_buffer_resource bump down
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
Benchmarks:
-------------------------------- Benchmark old new -------------------------------- bm_list/1 5.93 ns 4.05 ns bm_list/8 46.8 ns 33.2 ns bm_list/64 366 ns 240 ns bm_list/512 3011 ns 1938 ns bm_list/2048 14374 ns 8517 ns
libcxx/benchmarks/CMakeLists.txt | ||
---|---|---|
180 | Can you add a link to the article (https://fitzgeraldnick.com/2019/11/01/always-bump-downwards.html) in the commit message? |
libcxx/benchmarks/CMakeLists.txt | ||
---|---|---|
180 | I would love to see this link in the code too, that makes it a lot easier to find the design rationale than in the commit message. |
Can you add a link to the article (https://fitzgeraldnick.com/2019/11/01/always-bump-downwards.html) in the commit message?