diff options
| author | Nicholas Nethercote <nnethercote@mozilla.com> | 2016-10-21 19:25:53 +1100 |
|---|---|---|
| committer | Nicholas Nethercote <nnethercote@mozilla.com> | 2016-10-25 11:48:25 +1100 |
| commit | 3fd90d8aa53d73456b5df476a2bd6cc2caf473c6 (patch) | |
| tree | d36f7cb1f8e1b511f6994c3301f50c350120d665 /src/libsyntax/lib.rs | |
| parent | 0a16a11c392d227ca845e65905c06599579e2828 (diff) | |
| download | rust-3fd90d8aa53d73456b5df476a2bd6cc2caf473c6.tar.gz rust-3fd90d8aa53d73456b5df476a2bd6cc2caf473c6.zip | |
Use `SmallVector` for `TtReader::stack`.
This avoids 800,000 heap allocations when compiling html5ever. It requires tweaking `SmallVector` a little.
Diffstat (limited to 'src/libsyntax/lib.rs')
| -rw-r--r-- | src/libsyntax/lib.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libsyntax/lib.rs b/src/libsyntax/lib.rs index 6e671c9efdc..169388d72b6 100644 --- a/src/libsyntax/lib.rs +++ b/src/libsyntax/lib.rs @@ -35,6 +35,7 @@ #![feature(rustc_diagnostic_macros)] #![feature(specialization)] +extern crate core; extern crate serialize; extern crate term; extern crate libc; |
