You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
hey, the gh actions workflow is waiting for maintainer approval to start. just leaving this comment here so whenever someone sees it can trigger the rerun (it should now be fine, see above)
extend_from_slice wasn't allocating enough capacity sometimes (maybe by one item always?, anyway, I defaulted to reserve(new_length) though it's a bit slower, but works fine), now it's fixed
it does seem that some benchmarks got a bit slower but it's within ranges so it might just be noise (anyway, it'd be 5% at most)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Improvements
This PR solves the performance regressions v2 introduced. Its most meaningful improvements are (in nanoseconds):
bench_extend: 80.48bench_extend_filtered: 82.81bench_extend_filtered_small: 7.26bench_extend_from_slice: 82.10bench_extend_from_slice_small: 9.80bench_insert_push: 307.51bench_insert_push_small: 39.03bench_insert_small: 116.55bench_push: 277.76bench_push_small: 41.78bench_push_vec: 213.06bench_push_vec_small: 27.75bench_pushpop: 303.43bench_pushpop_vec: 143.72bench_remove_small: 77.25Some benchmarks score faster than on the v1 implementation.
Added a test for safe unwind.
Performance