Skip to content

Inline RawVec::cap - #33522

Merged
bors merged 1 commit into
rust-lang:masterfrom
mbrubeck:inline-rawvec-cap
May 11, 2016
Merged

Inline RawVec::cap#33522
bors merged 1 commit into
rust-lang:masterfrom
mbrubeck:inline-rawvec-cap

Conversation

@mbrubeck

@mbrubeckmbrubeck commented May 9, 2016

Copy link
Copy Markdown
Contributor

This was showing up in a Servo profile.

@mbrubeck
mbrubeckforce-pushed the inline-rawvec-cap branch from 3144064 to 06f5fa4CompareMay 9, 2016 18:45
@mbrubeck

Copy link
Copy Markdown
ContributorAuthor

Per discussion on #33357, this function is generic and therefore already inlineable. It was probably not inlined because Servo's build system sets codegen-units > 1 by default. Due to #32469 this can inhibit inlining of functions that are generic but not #[inline].

@nagisa

Copy link
Copy Markdown
Member

@bors r+

@bors

bors commented May 9, 2016

Copy link
Copy Markdown
Collaborator

📌 Commit 06f5fa4 has been approved by nagisa

@eddyb

Copy link
Copy Markdown
Contributor

@bors rollup

steveklabnik added a commit to steveklabnik/rust that referenced this pull request May 11, 2016
Inline RawVec::cap
This was showing up in a Servo profile.
bors added a commit that referenced this pull request May 11, 2016
@bors
bors merged commit 06f5fa4 into rust-lang:masterMay 11, 2016
Sign up for freeto 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.

4 participants

@mbrubeck@nagisa@bors@eddyb