BTree: encapsulate LeafRange better & some debug asserts#85980
BTree: encapsulate LeafRange better & some debug asserts#85980bors merged 1 commit intorust-lang:masterfrom ssomers:btree_cleanup_LeafRange
Conversation
|
added a comment + added debug assert on such |
|
split up benchmarks to better illustrate the disappointment that started #62924 |
|
@bors try @rust-timer queue |
|
Awaiting bors try build completion. @rustbot label: +S-waiting-on-perf |
|
⌛ Trying commit bb0c01770e325d66292ee8ea84ef1eaf1ba249af with merge 078cf1207b1bbbf628b7e0b76de039fea4fb6d59... |
|
☀️ Try build successful - checks-actions |
|
Queued 078cf1207b1bbbf628b7e0b76de039fea4fb6d59 with parent 35fff69, future comparison URL. |
|
Finished benchmarking try commit (078cf1207b1bbbf628b7e0b76de039fea4fb6d59): comparison url. Benchmarking this pull request likely means that it is perf-sensitive, so we're automatically marking it as not fit for rolling up. Please note that if the perf results are neutral, you should likely undo the rollup=never given below by specifying Importantly, though, if the results of this run are non-neutral do not roll this PR up -- it will mask other regressions or improvements in the roll up. @bors rollup=never |
|
Lots of red, which to me means, if anything, that #74615 is still haunting |
|
As to library/alloc benchmarks:
|
|
I am happy with modifications to use of unwrap_unchecked; generally, if we can not use it and the performance does not show problems, we shouldn't use it. (Obviously, if performance improves, then not using it seems better). I think this may be a change in opinion from the other PR; I'd be ok accepting a rebased version of it presuming perf.rlo was neutral or an improvement. |
#74693 was about the btree's private Anyway, for the time being, here's a rebased version with the two |
|
@bors try @rust-timer queue |
|
Awaiting bors try build completion. @rustbot label: +S-waiting-on-perf |
|
⌛ Trying commit b9d43c6 with merge 013ba6f7c5a4503fd819fadde66647e054355c7c... |
|
☀️ Try build successful - checks-actions |
|
Queued 013ba6f7c5a4503fd819fadde66647e054355c7c with parent eab201d, future comparison URL. |
|
Finished benchmarking try commit (013ba6f7c5a4503fd819fadde66647e054355c7c): comparison url. Benchmarking this pull request likely means that it is perf-sensitive, so we're automatically marking it as not fit for rolling up. Please note that if the perf results are neutral, you should likely undo the rollup=never given below by specifying Importantly, though, if the results of this run are non-neutral do not roll this PR up -- it will mask other regressions or improvements in the roll up. @bors rollup=never |
|
@bors r+ |
|
📌 Commit b9d43c6 has been approved by |
|
☀️ Test successful - checks-actions |
…rk-Simulacrum BTree: encapsulate LeafRange better & some debug asserts Looking at iterators again, I think rust-lang#81937 didn't house enough code in `LeafRange`. Moving the API boundary a little makes things more local in navigate.rs and less complicated in map.rs. r? `@Mark-Simulacrum`
Looking at iterators again, I think #81937 didn't house enough code in
LeafRange. Moving the API boundary a little makes things more local in navigate.rs and less complicated in map.rs.r? @Mark-Simulacrum