diff options
| author | Nicholas Nethercote <nnethercote@mozilla.com> | 2018-05-17 07:58:08 +1000 |
|---|---|---|
| committer | Nicholas Nethercote <nnethercote@mozilla.com> | 2018-05-17 10:35:39 +1000 |
| commit | 47bc774ab6b23f0e01bf4672d36ed9f8d7e3e798 (patch) | |
| tree | 539b7294e5662af08a05ab06431ae2f33b768f4d /src/rustllvm/RustWrapper.cpp | |
| parent | f778bdefdd9663aa78c31ffc7773e31bcae4fb39 (diff) | |
| download | rust-47bc774ab6b23f0e01bf4672d36ed9f8d7e3e798.tar.gz rust-47bc774ab6b23f0e01bf4672d36ed9f8d7e3e798.zip | |
Avoid allocations in `opt_normalize_projection_type`.
This patch changes `opt_normalize_project_type` so it appends obligations to a given obligations vector, instead of returning a new obligations vector. This change avoids lots of allocations. In the most extreme case, for a clean "Check" build of serde it reduces the total number of allocations by 20%.
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
