about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorBjörn Steinbrink <bsteinbr@gmail.com>2014-05-31 14:21:39 +0200
committerBjörn Steinbrink <bsteinbr@gmail.com>2014-05-31 14:58:12 +0200
commitcd844c5fb54913bced99a046230e9af7b3704c9e (patch)
treef436f41d808d6899440d487db91bfb89463b771b /src/rustllvm/RustWrapper.cpp
parentff2bf58e9e0c1e7b154b88fc7ba8c52584e9f768 (diff)
downloadrust-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