mirror of
git://git.yoctoproject.org/meta-virtualization.git
synced 2025-07-19 20:59:41 +02:00

The docker-compose project is using console_scripts which hence imports pkg_resources which is very slow at starting time, see: https://github.com/pypa/setuptools/issues/510 This could be workaround by importing fastentrypoints module. Some tests: Before the patch, on a colibri-imx8x machine: $ time docker-compose ``` real 0m5.108s user 0m4.761s sys 0m0.272s ``` After the patch, on a colibri-imx8x machine: $ time docker-compose ``` real 0m3.526s user 0m3.249s sys 0m0.235s ``` Have verified the patch with: https://docs.docker.com/compose/gettingstarted Signed-off-by: Ming Liu <liu.ming50@gmail.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
29 lines
704 B
Diff
29 lines
704 B
Diff
From f3a22f0f14a4b3313e6405dfb6c97df949493a34 Mon Sep 17 00:00:00 2001
|
|
From: Ming Liu <liu.ming50@gmail.com>
|
|
Date: Thu, 30 Jan 2020 17:22:19 +0100
|
|
Subject: [PATCH] setup.py: import fastentrypoints
|
|
|
|
Upstream-Status: Inappropriate [OE specific configuration]
|
|
|
|
Signed-off-by: Ming Liu <liu.ming50@gmail.com>
|
|
---
|
|
setup.py | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/setup.py b/setup.py
|
|
index ad57969..3cccffc 100644
|
|
--- a/setup.py
|
|
+++ b/setup.py
|
|
@@ -12,7 +12,7 @@ import sys
|
|
import pkg_resources
|
|
from setuptools import find_packages
|
|
from setuptools import setup
|
|
-
|
|
+import fastentrypoints
|
|
|
|
def read(*parts):
|
|
path = os.path.join(os.path.dirname(__file__), *parts)
|
|
--
|
|
2.7.4
|
|
|