Construct paramenvs from an iterator - #161447
Open
jdonszelmann wants to merge 4 commits into
Open
Conversation
jdonszelmann
force-pushed
the
paramenv-from-iter
branch
from
August 24, 2026 08:25
6c9ac51 to
58f9543
Compare
Collaborator
|
This PR was rebased onto a different main commit. Here's a range-diff highlighting what actually changed. Rebasing is a normal part of keeping PRs up to date, so no action is needed—this note is just to help reviewers. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
lcnr
reviewed
Aug 24, 2026
lcnr
reviewed
Aug 24, 2026
jdonszelmann
force-pushed
the
paramenv-from-iter
branch
from
August 25, 2026 13:28
b453f2b to
d196b28
Compare
Collaborator
|
cc @rust-lang/clippy |
lcnr
reviewed
Aug 25, 2026
jdonszelmann
force-pushed
the
paramenv-from-iter
branch
from
August 25, 2026 13:44
d196b28 to
0da5e32
Compare
Contributor
Author
|
@bors r=lcnr |
Contributor
Contributor
Author
|
@bors rollup |
JonathanBrouwer
added a commit
to JonathanBrouwer/rust
that referenced
this pull request
Aug 25, 2026
…=lcnr Construct paramenvs from an iterator r? @lcnr Change things so paramenvs are created from iterators instead of already interned lists. In theory this may sometimes cause re-interning, but I haven't seen any performance change because of it. The advantage is that doing the interning becomes private API of paramenvs, so we can change how it works (by for example, compressing the paramenv in the future). > [!NOTE] > I've not used an LLM for any part of this PR, or any other PR I make. This includes any related work like research.
This comment has been minimized.
This comment has been minimized.
Contributor
Author
|
@bors r- |
Contributor
|
This pull request was unapproved. This PR was contained in a rollup (#161752), which was unapproved. |
Contributor
Author
|
oh that's nasty but makes so much sense, oof |
jdonszelmann
force-pushed
the
paramenv-from-iter
branch
from
August 25, 2026 14:51
0da5e32 to
12b6dab
Compare
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.
r? @lcnr
Change things so paramenvs are created from iterators instead of already interned lists. In theory this may sometimes cause re-interning, but I haven't seen any performance change because of it. The advantage is that doing the interning becomes private API of paramenvs, so we can change how it works (by for example, compressing the paramenv in the future).
Note
I've not used an LLM for any part of this PR, or any other PR I make. This includes any related work like research.