Skip to content

rustc: Switch ty::node_type_table to smallintmap, cut 400mb memory use off a librustc build.#6776

Closed
graydon wants to merge 1 commit intorust-lang:incomingfrom
graydon:node-type-table-hashmap
Closed

rustc: Switch ty::node_type_table to smallintmap, cut 400mb memory use off a librustc build.#6776
graydon wants to merge 1 commit intorust-lang:incomingfrom
graydon:node-type-table-hashmap

Conversation

@graydon
Copy link
Copy Markdown
Contributor

@graydon graydon commented May 28, 2013

Smallintmap was being populated with sparse keys during ast deserialization.

…e off a librustc build.

Smallintmap was being populated with sparse keys during ast deserialization.
@alexcrichton
Copy link
Copy Markdown
Member

Out of curiosity, do you know if this hits perf at all? That was the only thing stopping me from doing this when I saw it.

Also, yay!

@graydon
Copy link
Copy Markdown
Contributor Author

graydon commented May 28, 2013

The measurements I took show it running slightly faster. Though they were not the most precise, might conflate factors.

bors added a commit that referenced this pull request May 28, 2013
Smallintmap was being populated with sparse keys during ast deserialization.
@bors bors closed this May 28, 2013
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.

4 participants