Skip to content

Conversation

@jonas-schievink
Copy link
Contributor

Reduces memory usage of the CrateDefMap query by ~130 MB (50%) on r-a.

I was also looking into handling glob imports more efficiently (storing scope chains instead of always duplicating everything into the glob-importing module's scope), but it seems that this already gives the most significant wins.

Jonas Schievink added 2 commits June 30, 2020 13:23
Reduces memory usage of the CrateDefMap query by ~130 MB on r-a.
@jonas-schievink
Copy link
Contributor Author

bors r+

@bors
Copy link
Contributor

bors bot commented Jun 30, 2020

@bors bors bot merged commit 3e70d0f into rust-lang:master Jun 30, 2020
.chain(self.values.keys())
.chain(self.macros.keys())
.chain(self.unresolved.iter())
.collect();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you have to collect here?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, names have to be deduplicated

@jonas-schievink jonas-schievink deleted the split-scope-maps branch June 30, 2020 13:05
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.

3 participants