Skip to content

Avoid cloning the stack on every push_ctxt call in trans #9723

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 5, 2013
Merged

Avoid cloning the stack on every push_ctxt call in trans #9723

merged 1 commit into from
Oct 5, 2013

Conversation

bluss
Copy link
Member

@bluss bluss commented Oct 4, 2013

Avoid cloning the stack on every push_ctxt call in trans

Rewrite the use of TLS variable for push_ctxt so that it uses a []
instead of a @
[]. Before it cloned the whole vector on each push and
pop, which is unnecessary.

Rewrite the use of TLS variable for `push_ctxt` so that it uses a ~[]
instead of a @~[]. Before it cloned the whole vector on each push and
pop, which is unnecessary.
bors added a commit that referenced this pull request Oct 4, 2013
…xcrichton

Avoid cloning the stack on every `push_ctxt` call in trans

Rewrite the use of TLS variable for `push_ctxt` so that it uses a ~[]
instead of a @~[]. Before it cloned the whole vector on each push and
pop, which is unnecessary.
@bors bors closed this Oct 5, 2013
@bors bors merged commit 87294c2 into rust-lang:master Oct 5, 2013
@bluss bluss deleted the trans-no-push-ctxt-clone branch October 5, 2013 04:56
flip1995 pushed a commit to flip1995/rust that referenced this pull request Nov 21, 2022
Fix dupe word typos

changelog: fix some typos
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants