Skip to content

Lazy-load filemaps from external crates. #25703

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

Merged
merged 1 commit into from
May 23, 2015
Merged

Conversation

eddyb
Copy link
Member

@eddyb eddyb commented May 22, 2015

Reduces pre-trans heap baseline (tested on fn main() {}) from 1.2MB to 696kB.
Most of the remaining allocations are used by imported macros.
While it might be possible to also load macros lazily, doing so is non-trivial and this PR doesn't tackle that.

@rust-highfive
Copy link
Contributor

r? @pnkfelix

(rust_highfive has picked a reviewer for you, use r? to override)

@nikomatsakis
Copy link
Contributor

Measurements would be nice, but the code looks good to me.

@pnkfelix
Copy link
Member

@bors r+ 5dc03a8

Manishearth added a commit to Manishearth/rust that referenced this pull request May 22, 2015
Reduces pre-trans heap baseline (tested on `fn main() {}`) from 1.2MB to 696kB.
Most of the remaining allocations are used by imported macros.
While it might be possible to also load macros lazily, doing so is non-trivial and this PR doesn't tackle that.
oli-obk pushed a commit to oli-obk/rust that referenced this pull request May 23, 2015
Reduces pre-trans heap baseline (tested on `fn main() {}`) from 1.2MB to 696kB.
Most of the remaining allocations are used by imported macros.
While it might be possible to also load macros lazily, doing so is non-trivial and this PR doesn't tackle that.
oli-obk pushed a commit to oli-obk/rust that referenced this pull request May 23, 2015
Reduces pre-trans heap baseline (tested on `fn main() {}`) from 1.2MB to 696kB.
Most of the remaining allocations are used by imported macros.
While it might be possible to also load macros lazily, doing so is non-trivial and this PR doesn't tackle that.
oli-obk pushed a commit to oli-obk/rust that referenced this pull request May 23, 2015
Reduces pre-trans heap baseline (tested on `fn main() {}`) from 1.2MB to 696kB.
Most of the remaining allocations are used by imported macros.
While it might be possible to also load macros lazily, doing so is non-trivial and this PR doesn't tackle that.
oli-obk pushed a commit to oli-obk/rust that referenced this pull request May 23, 2015
Reduces pre-trans heap baseline (tested on `fn main() {}`) from 1.2MB to 696kB.
Most of the remaining allocations are used by imported macros.
While it might be possible to also load macros lazily, doing so is non-trivial and this PR doesn't tackle that.
bors added a commit that referenced this pull request May 23, 2015
@bors bors merged commit 5dc03a8 into rust-lang:master May 23, 2015
@eddyb eddyb deleted the lazier-loads branch May 23, 2015 21:40
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.

5 participants