forked from pool/python-zstd
* Create context for compress one time on module init.
Performance gain around 6%.
* Init cores cache as early as possible on module init.
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-zstd?expand=0&rev=40
16 lines
326 B
Diff
16 lines
326 B
Diff
---
|
|
setup.py | 2 ++
|
|
1 file changed, 2 insertions(+)
|
|
|
|
--- a/setup.py
|
|
+++ b/setup.py
|
|
@@ -119,6 +119,8 @@ else:
|
|
class ZstdBuildExt( build_ext ):
|
|
|
|
def build_extensions(self):
|
|
+ if 'test' in sys.argv: return
|
|
+
|
|
c = self.compiler.compiler_type
|
|
if c in COPT:
|
|
for e in self.extensions:
|