-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enable ZSTD_MULTITHREAD by default? #2364
Comments
Multi-threading is not enabled by default in the library, There are many reasons to not enable multithreading by default, but good news is that we have been resolutely tackling them one by one over the past versions. So much so that we are now pretty close to being able to update this policy. Such change will also require a larger version number change, like |
Thanks, I see. Python's built-in modules use system's libraries on Linux, such as sqlite3/liblzma. I have written a zstd module for Python standard library, it has this problem. FYI, a recent discussion about adding zstd to Python standard library: Please understand that people on that mailing list tend to be conservative and cautious, they are used to rejecting things, but are very open to new ideas. |
You mean just compile-in the option by default or '-T0' also being the default ? Because SO/HO users would prefer the latter, as expressed in #1423 Even if it's a compile-time hardcode instead of an envvar. |
It's not about CLI program. Some developer users build zstd library, but multi-threaded compression is not enabled by default, then compiled program can only use single thread compression. |
Could you explain more on the reasons? Would there be any impact of enabling it during build and not using the functionality? |
There used to be an impact, but it's fixed now. So indeed, nowadays, |
Solved in #2584 |
On macOS/Ubuntu, when dynamically linking to the zstd library provided by system, multi-threaded compression can't be used:
May I ask, what is the reason for not enabling it by default?
The text was updated successfully, but these errors were encountered: