Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Cache depspec objects to optimize search speed
Provides a significant speed boost when resolving dependency chains by avoiding the overhead of creating DependencySpec objects for each query/distribution combo.
- Loading branch information
Showing
1 changed file
with
5 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6f87552
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.
Measuring dependency resolution speed with the command:
time zef install Cro::OpenAPI::RoutesFromDefinition --debug --dry --/test
Before this commit: 59s
After this commit: 11s
6f87552
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.
Wow, what a nice catch!
Feels a bit like the
cache
sub's name is a bit misleading...