Skip to content

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
Contributor

@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