Convert portions of rustc to istrs. Recover a lot of performance.
Issue #855
This commit is contained in:
parent
fcc031c5b4
commit
b2408d57f0
8 changed files with 66 additions and 60 deletions
|
|
@ -158,7 +158,8 @@ fn resolve_path(path: &[ast::ident], data: @[u8]) -> [ast::def_id] {
|
|||
let paths = ebml::get_doc(md, tag_paths);
|
||||
let eqer = bind eq_item(_, s);
|
||||
let result: [ast::def_id] = [];
|
||||
for doc: ebml::doc in lookup_hash(paths, eqer, hash_path(s)) {
|
||||
for doc: ebml::doc in lookup_hash(paths, eqer,
|
||||
hash_path(istr::from_estr(s))) {
|
||||
let did_doc = ebml::get_doc(doc, tag_def_id);
|
||||
result += [parse_def_id(ebml::doc_data(did_doc))];
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue