summaryrefslogtreecommitdiffstats
path: root/contrib/python
diff options
context:
space:
mode:
authorrobot-contrib <[email protected]>2025-02-21 20:33:28 +0300
committerrobot-contrib <[email protected]>2025-02-21 22:22:00 +0300
commit005b8a9fd31e325164fdaad9ccde51222d9dc1c7 (patch)
tree927528cb5e48c5a3af50e324fd4476fe7d3c9657 /contrib/python
parent74abb8215ba55f6017c2504dc3312470949afa89 (diff)
Update contrib/libs/zstd to 1.5.7
Release highlights are: * The compression speed for small data blocks has been notably (~10%) improved at fast compression levels. * The `--patch-from` functionality of the zstd CLI ... had its speed reduced to uncomfortable levels. v1.5.7 largely mitigates the speed impact of high compression levels 18+ * The compression ratio has been enhanced slightly for large data across all compression levels, commit_hash:c66283dd802e1fd38484f7179848006c58f2baa4
Diffstat (limited to 'contrib/python')
-rw-r--r--contrib/python/zstandard/py2/patches/01-zstd.patch2
-rw-r--r--contrib/python/zstandard/py2/zstd.c2
-rw-r--r--contrib/python/zstandard/py3/c-ext/backend_c.c2
-rw-r--r--contrib/python/zstandard/py3/patches/zstd-version.patch11
4 files changed, 14 insertions, 3 deletions
diff --git a/contrib/python/zstandard/py2/patches/01-zstd.patch b/contrib/python/zstandard/py2/patches/01-zstd.patch
index 7fd70117781..53fed08101b 100644
--- a/contrib/python/zstandard/py2/patches/01-zstd.patch
+++ b/contrib/python/zstandard/py2/patches/01-zstd.patch
@@ -12,4 +12,4 @@
+++ contrib/python/zstandard/py2/zstd.c (working tree)
@@ -213,1 +213,1 @@ void zstd_module_init(PyObject* m) {
- if (ZSTD_VERSION_NUMBER != 10405 || ZSTD_versionNumber() != 10405) {
-+ if (ZSTD_VERSION_NUMBER != 10506 || ZSTD_versionNumber() != 10506) {
++ if (ZSTD_VERSION_NUMBER != 10507 || ZSTD_versionNumber() != 10507) {
diff --git a/contrib/python/zstandard/py2/zstd.c b/contrib/python/zstandard/py2/zstd.c
index f1d78dfdaf8..68471183a5c 100644
--- a/contrib/python/zstandard/py2/zstd.c
+++ b/contrib/python/zstandard/py2/zstd.c
@@ -210,7 +210,7 @@ void zstd_module_init(PyObject* m) {
We detect this mismatch here and refuse to load the module if this
scenario is detected.
*/
- if (ZSTD_VERSION_NUMBER != 10506 || ZSTD_versionNumber() != 10506) {
+ if (ZSTD_VERSION_NUMBER != 10507 || ZSTD_versionNumber() != 10507) {
PyErr_SetString(PyExc_ImportError, "zstd C API mismatch; Python bindings not compiled against expected zstd version");
return;
}
diff --git a/contrib/python/zstandard/py3/c-ext/backend_c.c b/contrib/python/zstandard/py3/c-ext/backend_c.c
index aabe30bc526..4b09d1fbcc0 100644
--- a/contrib/python/zstandard/py3/c-ext/backend_c.c
+++ b/contrib/python/zstandard/py3/c-ext/backend_c.c
@@ -152,7 +152,7 @@ void zstd_module_init(PyObject *m) {
PyObject *features = NULL;
PyObject *feature = NULL;
unsigned zstd_ver_no = ZSTD_versionNumber();
- unsigned our_hardcoded_version = 10506;
+ unsigned our_hardcoded_version = 10507;
if (ZSTD_VERSION_NUMBER != our_hardcoded_version ||
zstd_ver_no != our_hardcoded_version) {
PyErr_Format(
diff --git a/contrib/python/zstandard/py3/patches/zstd-version.patch b/contrib/python/zstandard/py3/patches/zstd-version.patch
new file mode 100644
index 00000000000..c195f921e0d
--- /dev/null
+++ b/contrib/python/zstandard/py3/patches/zstd-version.patch
@@ -0,0 +1,11 @@
+--- contrib/python/zstandard/py3/c-ext/backend_c.c (index)
++++ contrib/python/zstandard/py3/c-ext/backend_c.c (working tree)
+@@ -152,7 +152,7 @@ void zstd_module_init(PyObject *m) {
+ PyObject *features = NULL;
+ PyObject *feature = NULL;
+ unsigned zstd_ver_no = ZSTD_versionNumber();
+- unsigned our_hardcoded_version = 10506;
++ unsigned our_hardcoded_version = 10507;
+ if (ZSTD_VERSION_NUMBER != our_hardcoded_version ||
+ zstd_ver_no != our_hardcoded_version) {
+ PyErr_Format(