-
Notifications
You must be signed in to change notification settings - Fork 339
dependencies.cpp optimizations #1891
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
BillyONeal
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
| std::unordered_set<PackageSpec> spec_set = {spec}; | ||
| // We want to batch as many dep_infos as possible, so look ahead in the frame and stack | ||
| std::unordered_set<PackageSpec> spec_set = {frame.spec}; | ||
| for (auto&& d : frame.deps) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I hate the no {}s but that's what the other code in this function is doing so no change requested.
| it->second.overlay_or_override = true; | ||
| it->second.scfl = p_overlay; | ||
| } | ||
| else if (const auto over_it = m_overrides.find(spec.name()); over_it != m_overrides.end()) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
GitHub's diff is freaking awful as always. This is just deleting the unused Version ver and changing else { if into else if
No change requested.
Nitpicks I noticed while reviewing microsoft#1891
Nitpicks I noticed while reviewing #1891
Collected while working on #1890.
Removes unused code.
Makes
batch_load_vars()handle all dependencies from the currentConstraintFramestack item. In particular, extends the initial batch when the stack is empty and the current frame already constains multiple dependencies from the top level manifest. OTOH it may have no effect at all because unbatched processing already collected the vars incommands.install.cpp.