-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Avoid the Box in TyCtxt::associated_items
.
#55604
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
Conversation
@nikomatsakis: a better approach would be to remove the box in |
I'll take a look. I can't see any deep reason for it to be there. |
(Oh, I think I know why it's there, that's so annoying. Yeah, I think I added it as a sort of workaround, but if it's perf sensitive I should be able to fix it.) |
@nnethercote -- what do you think of the commits I just pushed? I guess that achieves what you were going for. |
The job Click to expand the log.
I'm a bot! I can only do what humans tell me to, so if this was not helpful or you have suggestions for improvements, please ping or otherwise contact |
Looks reasonable. I will profile them on Monday to make sure they work as expected. Thanks! |
@nikomatsakis: I re-measured and your patch has the same effect as mine, yay. Do you want to file a new PR with just your patch so we don't pollute the repo history unnecessarily? |
433635f
to
54409b6
Compare
@nikomatsakis: I changed things so just your last patch is here. |
@bors try |
⌛ Trying commit 54409b665a8d5ac560482222dcc7ba54326abf54 with merge eaa94a5f22f00315e4c696c94af9efaa915e534f... |
Ugh, I didn't mean to do a try. @bors r+ |
📌 Commit 54409b665a8d5ac560482222dcc7ba54326abf54 has been approved by |
The job Click to expand the log.
I'm a bot! I can only do what humans tell me to, so if this was not helpful or you have suggestions for improvements, please ping or otherwise contact |
⌛ Testing commit 54409b665a8d5ac560482222dcc7ba54326abf54 with merge c6c23ed659615a8167468daf935ec930a5298bdd... |
💔 Test failed - status-travis |
The job Click to expand the log.
I'm a bot! I can only do what humans tell me to, so if this was not helpful or you have suggestions for improvements, please ping or otherwise contact |
This reduces instruction counts on packed_simd by 2%.
54409b6
to
e927a24
Compare
@bors retry |
@bors r+ |
📌 Commit e927a24 has been approved by |
…hercote Avoid the Box in `TyCtxt::associated_items`. This reduces instruction counts on `packed_simd` by 2%. r? @nikomatsakis
☀️ Test successful - status-appveyor, status-travis |
This reduces instruction counts on
packed_simd
by 2%.r? @nikomatsakis