Github Move iter_results to dyn FnMut rather than a generic by Mark-Simulacrum ·...
source link: https://github.com/rust-lang/rust/pull/84719
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.
Conversation
This means that we're no longer generating the iteration/locking code for each invocation site of iter_results, rather just once per query (roughly), which seems much better: this is a 15% win in instruction counts when compiling the rustc_query_impl crate. The code where this is used also is pretty cold, I suspect; the old solution didn't fully monomorphize either.
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK