diff options
| author | Björn Steinbrink <bsteinbr@gmail.com> | 2014-05-31 14:21:39 +0200 |
|---|---|---|
| committer | Björn Steinbrink <bsteinbr@gmail.com> | 2014-05-31 14:58:12 +0200 |
| commit | cd844c5fb54913bced99a046230e9af7b3704c9e (patch) | |
| tree | f436f41d808d6899440d487db91bfb89463b771b /src/rustllvm/RustWrapper.cpp | |
| parent | ff2bf58e9e0c1e7b154b88fc7ba8c52584e9f768 (diff) | |
| download | rust-cd844c5fb54913bced99a046230e9af7b3704c9e.tar.gz rust-cd844c5fb54913bced99a046230e9af7b3704c9e.zip | |
Remove unnecessary allocations / clones during method lookup
By dropping the intermediate vector that holds the relevant candidates including duplicates and directly building the vector that has the duplicates removed we can eliminate quite a few allocations. This reduces the times for type checking by 5-10% (measured with libstd, libsyntax and librustc).
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
