cache attributes of items from foreign crates

this avoids parsing item attributes on each call to `item_attrs`, which takes
off 33% (!) of translation time and 50% (!) of trans-item collection time.
This commit is contained in:
Ariel Ben-Yehuda
2017-04-20 15:08:41 +03:00
committed by Ariel Ben-Yehuda
parent acd0e40b86
commit ece6c8434b
11 changed files with 85 additions and 23 deletions

View File

@@ -87,6 +87,7 @@
#![feature(needs_allocator)]
#![feature(optin_builtin_traits)]
#![feature(placement_in_syntax)]
#![cfg_attr(stage0, feature(pub_restricted))]
#![feature(shared)]
#![feature(staged_api)]
#![feature(unboxed_closures)]