diff options
| author | Nicholas Nethercote <nnethercote@mozilla.com> | 2016-10-07 12:51:53 +1100 |
|---|---|---|
| committer | Nicholas Nethercote <nnethercote@mozilla.com> | 2016-10-08 00:59:49 +1100 |
| commit | e5ffaded393b1fb162de9b617e9841cb555e8700 (patch) | |
| tree | 50701cf9817657b4b0ef18ed108f9095ccd3054a /src/rustllvm/RustWrapper.cpp | |
| parent | a5dac7a2af3ee444817eb7bfbba3539be8c06cf1 (diff) | |
| download | rust-e5ffaded393b1fb162de9b617e9841cb555e8700.tar.gz rust-e5ffaded393b1fb162de9b617e9841cb555e8700.zip | |
Avoid some `pat_to_string` calls.
`ty_of_method_or_bare_fn` currently calls `pat_to_string` even when it doesn't need to. Fixing this avoids hundreds of large allocations (e.g. 171,600 bytes, in `mk_printer`) in several of the rustc-benchmarks.
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
