-
-
Notifications
You must be signed in to change notification settings - Fork 90
Comparing changes
Open a pull request
base repository: python/importlib_metadata
base: v7.0.2
head repository: python/importlib_metadata
compare: v7.1.0
- 16 commits
- 13 files changed
- 3 contributors
Commits on Mar 20, 2024
-
gh-109653: Improve import time of importlib.metadata / email.utils (p…
…ython/cpython#114664) My criterion for delayed imports is that they're only worth it if the majority of users of the module would benefit from it, otherwise you're just moving latency around unpredictably. mktime_tz is not used anywhere in the standard library and grep.app indicates it's not got much use in the ecosystem either. Distribution.files is not nearly as widely used as other importlib.metadata APIs, so we defer the csv import. Before: ``` λ hyperfine -w 8 './python -c "import importlib.metadata"' Benchmark 1: ./python -c "import importlib.metadata" Time (mean ± σ): 65.1 ms ± 0.5 ms [User: 55.3 ms, System: 9.8 ms] Range (min … max): 64.4 ms … 66.4 ms 44 runs ``` After: ``` λ hyperfine -w 8 './python -c "import importlib.metadata"' Benchmark 1: ./python -c "import importlib.metadata" Time (mean ± σ): 62.0 ms ± 0.3 ms [User: 52.5 ms, System: 9.6 ms] Range (min … max): 61.3 ms … 62.8 ms 46 runs ``` for about a 3ms saving with warm disk cache, maybe 7-11ms with cold disk cache.
Configuration menu - View commit details
-
Copy full SHA for b4ce0ff - Browse repository at this point
Copy the full SHA b4ce0ffView commit details -
gh-116811: Ensure MetadataPathFinder.invalidate_caches is reachable w…
…hen delegated through PathFinder. (python/cpython#116812) * Make MetadataPathFinder a proper classmethod.
Configuration menu - View commit details
-
Copy full SHA for fb7465c - Browse repository at this point
Copy the full SHA fb7465cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 9a878d6 - Browse repository at this point
Copy the full SHA 9a878d6View commit details -
Configuration menu - View commit details
-
Copy full SHA for f16e114 - Browse repository at this point
Copy the full SHA f16e114View commit details -
Fix test failures on older Pythons with os_helper shim. Copied 'from_…
…test_support' from importlib_resources.
Configuration menu - View commit details
-
Copy full SHA for 3531507 - Browse repository at this point
Copy the full SHA 3531507View commit details -
Configuration menu - View commit details
-
Copy full SHA for 856541b - Browse repository at this point
Copy the full SHA 856541bView commit details -
Configuration menu - View commit details
-
Copy full SHA for ffa719b - Browse repository at this point
Copy the full SHA ffa719bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 5950f43 - Browse repository at this point
Copy the full SHA 5950f43View commit details -
Configuration menu - View commit details
-
Copy full SHA for 41ca039 - Browse repository at this point
Copy the full SHA 41ca039View commit details -
Configuration menu - View commit details
-
Copy full SHA for e30a16d - Browse repository at this point
Copy the full SHA e30a16dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 07d894d - Browse repository at this point
Copy the full SHA 07d894dView commit details -
Configuration menu - View commit details
-
Copy full SHA for adc4b12 - Browse repository at this point
Copy the full SHA adc4b12View commit details -
Make MetadataPathFinder.find_distributions a classmethod for consiste…
…ncy with CPython. Closes #484.
Configuration menu - View commit details
-
Copy full SHA for 47b14ac - Browse repository at this point
Copy the full SHA 47b14acView commit details -
Configuration menu - View commit details
-
Copy full SHA for 1711b2c - Browse repository at this point
Copy the full SHA 1711b2cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 2ef3b5f - Browse repository at this point
Copy the full SHA 2ef3b5fView commit details -
Configuration menu - View commit details
-
Copy full SHA for f5d6b5f - Browse repository at this point
Copy the full SHA f5d6b5fView commit details
This comparison is taking too long to generate.
Unfortunately it looks like we can’t render this comparison for you right now. It might be too big, or there might be something weird with your repository.
You can try running this command locally to see the comparison on your machine:
git diff v7.0.2...v7.1.0