about summary refs log tree commit diff
path: root/src/rt/rust_kernel.cpp
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2013-06-26 07:32:14 -0700
committerbors <bors@rust-lang.org>2013-06-26 07:32:14 -0700
commit4e5b4807a5b620627cf6e782524fbe6fc1463c2d (patch)
treef959815068602829c513a55c32093e7cd8bb8b27 /src/rt/rust_kernel.cpp
parenta30ab764e10232d8e9c1f9282c33b65ca9ef7daf (diff)
parent73e3dbf9c082659d9f7aa9281ef4af4080ed019d (diff)
downloadrust-4e5b4807a5b620627cf6e782524fbe6fc1463c2d.tar.gz
rust-4e5b4807a5b620627cf6e782524fbe6fc1463c2d.zip
auto merge of #7297 : huonw/rust/strip-expand-strip, r=cmr
This allows macros to both be conditionally defined, and expand
to items with #[cfg]'s.

This seems to have a performance improvement, e.g. for `std`:

```
# Before 
time: 1.660 s   expansion
time: 0.125 s   configuration
# After
time: 0.080 s   configuration 1
time: 1.127 s   expansion
time: 0.132 s   configuration 2
```

And for `extra`:

```
# Before
time: 0.593 s   expansion
time: 0.062 s   configuration
# After
time: 0.047 s   configuration 1
time: 0.147 s   expansion
time: 0.058 s   configuration 2
```

(This seems a little peculiar, but it is possibly because the expansion AST traversal is very slow, so removing as much as possible as early as possible has big benefits.)
Diffstat (limited to 'src/rt/rust_kernel.cpp')
0 files changed, 0 insertions, 0 deletions