about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2019-03-31 23:50:46 +0000
committerbors <bors@rust-lang.org>2019-03-31 23:50:46 +0000
commiteab3eb38df8dca99110b6149b3a15deeb4ef0413 (patch)
treefb19dec596c81c4854d95386a5868857bbda9081 /src/rustllvm/RustWrapper.cpp
parente3428db7c2b1eeb35096e0bf37672397977ff030 (diff)
parent606f3158bf7dd2708b1efdde2e6de34f8eaebd7b (diff)
downloadrust-eab3eb38df8dca99110b6149b3a15deeb4ef0413.tar.gz
rust-eab3eb38df8dca99110b6149b3a15deeb4ef0413.zip
Auto merge of #59507 - nnethercote:indent-with-SPACES, r=petrochenkov
Optimize indentation in the pretty printer.

Currently the pretty-printer calls `write!` for every space of
indentation. On some workloads the indentation level can exceed 100, and
a faster implementation reduces instruction counts by up to 7% on a few
workloads.
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions