about summary refs log tree commit diff
path: root/src/libstd/sys_common
diff options
context:
space:
mode:
authorNicholas Nethercote <nnethercote@mozilla.com>2019-03-29 08:32:13 +1100
committerNicholas Nethercote <nnethercote@mozilla.com>2019-04-01 07:55:25 +1100
commit606f3158bf7dd2708b1efdde2e6de34f8eaebd7b (patch)
tree19d61e538bb17a42f2a5a45ad54ade119976f0e4 /src/libstd/sys_common
parent4c27fb19ba15a2e45485e601a79914c6280196b0 (diff)
downloadrust-606f3158bf7dd2708b1efdde2e6de34f8eaebd7b.tar.gz
rust-606f3158bf7dd2708b1efdde2e6de34f8eaebd7b.zip
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/libstd/sys_common')
0 files changed, 0 insertions, 0 deletions