Skip to content

Let MultiItemDecorator take &Annotatable #25710

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

Conversation

Manishearth
Copy link
Member

fixes #25683

I have a very nonscientific measurement of the data via valgrind/massif here

I measured the memory usage for both --pretty=expanded and -Z no-trans

It seems like there's a 20-25MB decrease during expansion on stage2 librustc; but I'm not quite sure.

r? @eddyb

cc @nrc @huon

@Manishearth
Copy link
Member Author

This was measured by

CFG_LLVM_LINKAGE_FILE=/rust/x86_64-unknown-linux-gnu/rt/llvmdeps.rs LD_LIBRARY_PATH=/rust/x86_64-unknown-linux-gnu/stage1/lib:$LD_LIBRARY_PATH  valgrind --tool=massif x86_64-unknown-linux-gnu/stage1/bin/rustc --cfg stage1  -O --cfg rtopt --cfg ndebug -C rpath -C prefer-dynamic --target=x86_64-unknown-linux-gnu  -D warnings -L "x86_64-unknown-linux-gnu/rt" -L "/rust/x86_64-unknown-linux-gnu/llvm/Release/lib"    --out-dir x86_64-unknown-linux-gnu/stage1/lib/rustlib/x86_64-unknown-linux-gnu/lib -C extra-filename=-d8ace771 /rust/src/librustc/lib.rs [OPTIONS]

@Manishearth Manishearth changed the title Allow #[derive()] plugins to derive unsafe methods Let MultiItemDecorator take &Annotatable May 22, 2015
@sfackler
Copy link
Member

@bors r+ 6bc5a92

oli-obk pushed a commit to oli-obk/rust that referenced this pull request May 23, 2015
…fackler

fixes rust-lang#25683

I have a very nonscientific measurement of the data via valgrind/massif [here](https://gist.github.com/Manishearth/4c47f15f6835cb3957c4)

I measured the memory usage for both --pretty=expanded and -Z no-trans

It *seems* like there's a 20-25MB decrease during expansion on stage2 librustc; but I'm not quite sure.

r? @eddyb

(have not yet run tests, but it compiles fine, might want to wait before giving r+)

cc @nrc @huon
oli-obk pushed a commit to oli-obk/rust that referenced this pull request May 23, 2015
…fackler

fixes rust-lang#25683

I have a very nonscientific measurement of the data via valgrind/massif [here](https://gist.github.com/Manishearth/4c47f15f6835cb3957c4)

I measured the memory usage for both --pretty=expanded and -Z no-trans

It *seems* like there's a 20-25MB decrease during expansion on stage2 librustc; but I'm not quite sure.

r? @eddyb

(have not yet run tests, but it compiles fine, might want to wait before giving r+)

cc @nrc @huon
oli-obk pushed a commit to oli-obk/rust that referenced this pull request May 23, 2015
…fackler

fixes rust-lang#25683

I have a very nonscientific measurement of the data via valgrind/massif [here](https://gist.github.com/Manishearth/4c47f15f6835cb3957c4)

I measured the memory usage for both --pretty=expanded and -Z no-trans

It *seems* like there's a 20-25MB decrease during expansion on stage2 librustc; but I'm not quite sure.

r? @eddyb

(have not yet run tests, but it compiles fine, might want to wait before giving r+)

cc @nrc @huon
bors added a commit that referenced this pull request May 23, 2015
@bors bors merged commit 6bc5a92 into rust-lang:master May 23, 2015
@Manishearth Manishearth deleted the no_decorator_clone branch May 24, 2015 11:19
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.

MultiItemDecorator should take &Annotatable
4 participants