rustc_metadata: Optimize and document module children decoding by petrochenkov ·...
source link: https://github.com/rust-lang/rust/pull/92086
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
The first commit limits the item in the item_children
/each_child_of_item
query to modules (in name resolution sense) and adds a corresponding assertion.
The associated_item_def_ids
query collecting children of traits and impls specifically now uses a simplified implementation not decoding unnecessary data instead of each_child_of_item
, this gives a nice performance improvement.
The second commit does some renaming that clarifies the terminology used for all items in a module vs use
items only.
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK