-
-
Notifications
You must be signed in to change notification settings - Fork 259
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix slow PEX boot time when there are many extras. (#1929)
Large extras sets lead to an exponentially scaled collection of fingerprinted distribution objects that need to be de-duped. The hash codes calculated in doing so are expensive when the distribution metadata contains a large number of requirements. Cache these hash codes to improve boot time by two orders of magnitude. In order to enable ergonomic caching of hash codes via attrs built in feature for doing this, some new plumbing is added to the third party vendored importer plumbing. Fixes #1928
- Loading branch information
Showing
3 changed files
with
91 additions
and
27 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
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
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