diff options
| author | Nicholas Nethercote <nnethercote@mozilla.com> | 2019-03-29 08:32:13 +1100 |
|---|---|---|
| committer | Nicholas Nethercote <nnethercote@mozilla.com> | 2019-04-01 07:55:25 +1100 |
| commit | 606f3158bf7dd2708b1efdde2e6de34f8eaebd7b (patch) | |
| tree | 19d61e538bb17a42f2a5a45ad54ade119976f0e4 /src/rustllvm/ArchiveWrapper.cpp | |
| parent | 4c27fb19ba15a2e45485e601a79914c6280196b0 (diff) | |
| download | rust-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/rustllvm/ArchiveWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
