about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorFelix S. Klock II <pnkfelix@pnkfx.org>2019-01-30 15:12:41 +0100
committerFelix S. Klock II <pnkfelix@pnkfx.org>2019-01-30 15:12:41 +0100
commit1a183368082ad357b1fef0f55038becc9ac14b7b (patch)
tree60371d033529a2fc013a683c382f260cafde163e /src/rustllvm/RustWrapper.cpp
parent5f60208ba11171c249284f8fe0ea6b3e9b63383c (diff)
downloadrust-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