-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
Avoid hygiene_data
lookups
#61253
Avoid hygiene_data
lookups
#61253
Conversation
Local results were very good, let's hope the CI results are similar. Instruction counts:
@bors try |
⌛ Trying commit 265ab6448ef63300dd6b74206be2a3316bcd56e5 with merge 9f4ea3d6210445892cbd666b2413dcf95a68a363... |
@Manishearth: the new |
☀️ Try build successful - checks-travis |
Thanks for the heads up! |
@rust-timer build 9f4ea3d6210445892cbd666b2413dcf95a68a363 |
Success: Queued 9f4ea3d6210445892cbd666b2413dcf95a68a363 with parent b711179, comparison URL. |
Finished benchmarking try commit 9f4ea3d6210445892cbd666b2413dcf95a68a363, comparison URL. |
19 similar comments
Finished benchmarking try commit 9f4ea3d6210445892cbd666b2413dcf95a68a363, comparison URL. |
Finished benchmarking try commit 9f4ea3d6210445892cbd666b2413dcf95a68a363, comparison URL. |
Finished benchmarking try commit 9f4ea3d6210445892cbd666b2413dcf95a68a363, comparison URL. |
Finished benchmarking try commit 9f4ea3d6210445892cbd666b2413dcf95a68a363, comparison URL. |
Finished benchmarking try commit 9f4ea3d6210445892cbd666b2413dcf95a68a363, comparison URL. |
Finished benchmarking try commit 9f4ea3d6210445892cbd666b2413dcf95a68a363, comparison URL. |
Finished benchmarking try commit 9f4ea3d6210445892cbd666b2413dcf95a68a363, comparison URL. |
Finished benchmarking try commit 9f4ea3d6210445892cbd666b2413dcf95a68a363, comparison URL. |
Finished benchmarking try commit 9f4ea3d6210445892cbd666b2413dcf95a68a363, comparison URL. |
Finished benchmarking try commit 9f4ea3d6210445892cbd666b2413dcf95a68a363, comparison URL. |
Finished benchmarking try commit 9f4ea3d6210445892cbd666b2413dcf95a68a363, comparison URL. |
Finished benchmarking try commit 9f4ea3d6210445892cbd666b2413dcf95a68a363, comparison URL. |
Finished benchmarking try commit 9f4ea3d6210445892cbd666b2413dcf95a68a363, comparison URL. |
Finished benchmarking try commit 9f4ea3d6210445892cbd666b2413dcf95a68a363, comparison URL. |
Finished benchmarking try commit 9f4ea3d6210445892cbd666b2413dcf95a68a363, comparison URL. |
Finished benchmarking try commit 9f4ea3d6210445892cbd666b2413dcf95a68a363, comparison URL. |
Finished benchmarking try commit 9f4ea3d6210445892cbd666b2413dcf95a68a363, comparison URL. |
Finished benchmarking try commit 9f4ea3d6210445892cbd666b2413dcf95a68a363, comparison URL. |
Finished benchmarking try commit 9f4ea3d6210445892cbd666b2413dcf95a68a363, comparison URL. |
Suggestion: make (Everything else looks good, but I didn't look at the last commit yet, will look later.) |
It's a hot function that returns a 2-tuple, but the hottest call site (`hygienic_eq`) discards the second element. This commit renames `adjust_ident` as `adjust_ident_and_get_scope`, and then introduces a new `adjust_ident` that only computes the first element. This change also avoids the need to pass in an unused `DUMMY_HIR_ID` argument in a couple of places, which is nice.
This commit factors out some repeated code.
265ab64
to
95ea7fd
Compare
@petrochenkov: New code is up. I have addressed your comments. The new functions are in a new commit at the end of the series. |
Thanks! |
📌 Commit 95ea7fd has been approved by |
@bors rollup=never for perf. |
@bors p=1 because never. |
…ochenkov Avoid `hygiene_data` lookups These commits mostly introduce compound operations that allow two close adjacent `hygiene_data` lookups to be combined. r? @petrochenkov
☀️ Test successful - checks-travis, status-appveyor |
Final perf improvements are here. |
These commits mostly introduce compound operations that allow two close adjacent
hygiene_data
lookups to be combined.r? @petrochenkov