From 6da392f6892aa692adf997b5440203b84acf7f2a Mon Sep 17 00:00:00 2001 From: Stephan Erb Date: Mon, 30 Jan 2017 23:44:49 +0100 Subject: 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. --- tasks/vendoring/__init__.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'tasks') 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(): -- cgit v1.2.1