diff options
| author | Felix S. Klock II <pnkfelix@pnkfx.org> | 2019-01-30 15:12:41 +0100 |
|---|---|---|
| committer | Felix S. Klock II <pnkfelix@pnkfx.org> | 2019-01-30 15:12:41 +0100 |
| commit | 1a183368082ad357b1fef0f55038becc9ac14b7b (patch) | |
| tree | 60371d033529a2fc013a683c382f260cafde163e /src/rustllvm/RustWrapper.cpp | |
| parent | 5f60208ba11171c249284f8fe0ea6b3e9b63383c (diff) | |
| download | rust-1a183368082ad357b1fef0f55038becc9ac14b7b.tar.gz rust-1a183368082ad357b1fef0f55038becc9ac14b7b.zip | |
proc_macro: make `TokenStream::from_streams` pre-allocate its vector.
This requires a pre-pass over the input streams. But that is cheap compared to the quadratic blowup associated with reallocating the accumulating vector on-the-fly.
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
