[resolve] Use `unwrap_or_else` instead of `unwrap_or` in a hot path
This improves the performance of the `resolve_crate` function by 30% for a very large single file crate with auto-generated C bindings.
Showing
想要评论请 注册 或 登录
This improves the performance of the `resolve_crate` function by 30% for a very large single file crate with auto-generated C bindings.