diff options
| author | Björn Steinbrink <bsteinbr@gmail.com> | 2013-05-20 18:41:20 +0200 |
|---|---|---|
| committer | Björn Steinbrink <bsteinbr@gmail.com> | 2013-05-20 19:50:30 +0200 |
| commit | 19dc72809daa0f53120f88b155459f877e854945 (patch) | |
| tree | 86462d7c1ca24ae52d4e40eceb9792ad34c0570e /src/rustllvm/RustWrapper.cpp | |
| parent | b5be7d8a2c0e9132d16bda0acfe97774d923531c (diff) | |
| download | rust-19dc72809daa0f53120f88b155459f877e854945.tar.gz rust-19dc72809daa0f53120f88b155459f877e854945.zip | |
Optimize the lookup of traits containing a given method
Currently, trait_info is a hashmap that allows a quick lookup of all methods contained in a given trait, but we actually only use it to lookup traits that contain a given method. Adjusting the map to support the lookup we actually need gives a nice speed boost, reducing the time required for the resolution step for librustc from ~2.6s to ~1.0s on my box.
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
