diff options
author | Stephan Erb <github@stephanerb.eu> | 2017-01-30 23:44:49 +0100 |
---|---|---|
committer | Donald Stufft <donald@stufft.io> | 2017-01-30 17:44:49 -0500 |
commit | 6da392f6892aa692adf997b5440203b84acf7f2a (patch) | |
tree | fac20df45c37234ceefa86f0c5bf4f3743eaffde /tasks | |
parent | 0552ffeeda62759797cfdccaba8a3fa0cf816199 (diff) | |
download | pip-6da392f6892aa692adf997b5440203b84acf7f2a.tar.gz |
Adopt cachecontrol 0.12.0 with msgpack support (#3515) (#4258)
This change promises a performance improvement of up to 25%:
# Before
$ time pip install django --no-compile
2.34s user 2.49s system 47% cpu 10.106 total
# With this patch
$ time pip install django --no-compile
1.82s user 2.10s system 51% cpu 7.646 total
Both tests have been performed with hot caches.
Diffstat (limited to 'tasks')
-rw-r--r-- | tasks/vendoring/__init__.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tasks/vendoring/__init__.py b/tasks/vendoring/__init__.py index a7d8eff00..9dd77babd 100644 --- a/tasks/vendoring/__init__.py +++ b/tasks/vendoring/__init__.py @@ -93,6 +93,10 @@ def vendor(ctx, vendor_dir): drop_dir(vendor_dir / 'pkg_resources' / '_vendor') drop_dir(vendor_dir / 'pkg_resources' / 'extern') + # Drop interpreter and OS specific msgpack libs. + # Pip will rely on the python-only fallback instead. + remove_all(vendor_dir.glob('msgpack/*.so')) + # Detect the vendored packages/modules vendored_libs = [] for item in vendor_dir.iterdir(): |