Use DenseBit for drop_live_at in liveness tracing - #162488
Open
Kobzol wants to merge 1 commit into
Open
Conversation
jackh726
reviewed
Sep 8, 2026
| &self.drop_locations, | ||
| &self.drop_live_at, | ||
| ); | ||
| let mut set: IntervalSet<PointIndex> = |
Member
There was a problem hiding this comment.
This could use a comment.
Member
|
Cool :) r=me with comment added |
Member
|
@bors rollup=never |
Kobzol
force-pushed
the
borrowck-densebit
branch
from
September 8, 2026 16:59
94f3a57 to
855183d
Compare
Member
Author
|
Cool, added a comment. Thank you! @bors r=jackh726 And for good measure: |
Collaborator
|
Awaiting bors try build completion. @rustbot label: +S-waiting-on-perf |
Contributor
This comment has been minimized.
This comment has been minimized.
rust-bors Bot
pushed a commit
that referenced
this pull request
Sep 8, 2026
Use `DenseBit` for `drop_live_at` in liveness tracing
This comment has been minimized.
This comment has been minimized.
Kobzol
force-pushed
the
borrowck-densebit
branch
from
September 8, 2026 17:06
855183d to
1b1b92e
Compare
Contributor
|
This pull request was unapproved. |
Member
Author
Contributor
This comment has been minimized.
This comment has been minimized.
rust-bors Bot
pushed a commit
that referenced
this pull request
Sep 8, 2026
Use `DenseBit` for `drop_live_at` in liveness tracing
Contributor
Collaborator
|
Queued 57ac888 with parent 745de6e, future comparison URL. |
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
I noticed that
drop_live_atonly ever gets point, and never range, inserts, so I switched it over toDenseBitSet. This provides some nice wins onserde.However, the
add_drop_live_facts_forfunction expects to receive anIntervalSet. I first tried to switch the type ofLiveRegions::AtPointsfromSparseIntervalMatrixtoSparseBitMatrix, but that had regressions.So in this PR, I simply reconstruct an
IntervalSetfrom aDenseBitSet. Not super pretty, but perf. looks reasonable.Let me know if this makes sense or not! :)
r? jackh726