-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
libcore: Inline mem::forget()
.
#33357
Conversation
Was causing severe performance problems in WebRender.
@bors r+ |
📌 Commit 237eb72 has been approved by |
Given that |
It should be available for inlining, the only exception I know of would be when using codegen units. In that case only one codegen unit will actually monomorphize a given instance of a generic function. This is a somewhat recent change made in #32469 |
libcore: Inline `mem::forget()`. Was causing severe performance problems in WebRender. r? @brson
I think that if something is tagged as |
@nikomatsakis right. The change only affected generic functions that are not tagged |
Was causing severe performance problems in WebRender.
r? @brson