Skip to content

Cache a linear search for the #[staged_api] attribute. #27574

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
Aug 7, 2015

Conversation

brson
Copy link
Contributor

@brson brson commented Aug 6, 2015

This search happens a lot! Locally, compiling hyper sees the following improvements:

before

real 0m30.843s
user 0m51.644s
sys 0m2.128s

real 0m30.164s
user 0m53.320s
sys 0m2.208s

after

real 0m28.438s
user 0m51.076s
sys 0m2.276s

real 0m28.612s
user 0m51.560s
sys 0m2.192s

@rust-highfive
Copy link
Contributor

r? @jroesch

(rust_highfive has picked a reviewer for you, use r? to override)


return false;
}

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

travis says this line has trailing whitespace.

@huonw
Copy link
Member

huonw commented Aug 6, 2015

Nice wins. r=me without the whitespace.

This search happens a lot! Locally, compiling hyper sees the following improvements:

before

real    0m30.843s
user    0m51.644s
sys     0m2.128s

real    0m30.164s
user    0m53.320s
sys     0m2.208s

after

real    0m28.438s
user    0m51.076s
sys     0m2.276s

real    0m28.612s
user    0m51.560s
sys     0m2.192s
@brson brson force-pushed the cache-staged-api branch from 06d33d8 to fd142bb Compare August 6, 2015 23:53
@brson
Copy link
Contributor Author

brson commented Aug 6, 2015

@bors r=huonw

@bors
Copy link
Collaborator

bors commented Aug 6, 2015

📌 Commit fd142bb has been approved by huonw

bors added a commit that referenced this pull request Aug 7, 2015
This search happens a lot! Locally, compiling hyper sees the following improvements:

before

real    0m30.843s
user    0m51.644s
sys     0m2.128s

real    0m30.164s
user    0m53.320s
sys     0m2.208s

after

real    0m28.438s
user    0m51.076s
sys     0m2.276s

real    0m28.612s
user    0m51.560s
sys     0m2.192s
@bors
Copy link
Collaborator

bors commented Aug 7, 2015

⌛ Testing commit fd142bb with merge 1181679...

@bors bors merged commit fd142bb into rust-lang:master Aug 7, 2015
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.

5 participants