Skip to content

core: Inline most cell methods. - #23495

Closed
pcwalton wants to merge 1 commit into
rust-lang:masterfrom
pcwalton:inline-cell
Closed

pcwalton wants to merge 1 commit into
rust-lang:masterfrom
pcwalton:inline-cell

Conversation

@pcwalton

Copy link
Copy Markdown
Contributor

This is a significant performance problem in Servo.

r? @brson

This is a significant performance problem in Servo.
@emberian

Copy link
Copy Markdown
Contributor

Is LLVM really not inlining these functions? The bodies are miniscule, and the'll get monomorphized in the other crate. I wonder if we need to tune our inline cost.

@pcwalton

Copy link
Copy Markdown
Contributor Author

@cmr No, they do not all get monomorphized. Many of them just have lifetime parameters and so are not automatically monomorphized. This patch is based on actual profiling I did in Servo.

@pcwalton

Copy link
Copy Markdown
Contributor Author

@cmr In particular BorrowRef::new and BorrowRefMut::new are showing up in profiles.

@emberian

Copy link
Copy Markdown
Contributor

@bors: r+ rollup

@bors

bors commented Mar 18, 2015

Copy link
Copy Markdown
Contributor

📌 Commit 5f0f2aa has been approved by cmr

Manishearth added a commit to Manishearth/rust that referenced this pull request Mar 19, 2015
 This is a significant performance problem in Servo.

r? @brson
@Manishearth

Copy link
Copy Markdown
Member

This merged, 19b40f7

@sfackler sfackler closed this Mar 19, 2015
lnicola pushed a commit to lnicola/rust that referenced this pull request Nov 2, 2026
…ction-lookup-panic

fix: Panic `Expr not in lookup` due to projection types
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.

6 participants