facebook / facebook/zstd

Integrating the library with an external thread pool

Open
#4,043 2 comments 0 reactions 0 assignees View on GitHub
feature request
Dominant language
C
Stars
27.9k
Forks
2.6k
Avg merge
1d 3h
Merged PRs (30d)
8

Description

**Is your feature request related to a problem? Please describe.**
The library creates its own thread pool when compressing a large file which then contends with the main application that uses it (especially a problem in i.e. a game engine).

**Describe the solution you'd like**
An API to set a callback for it creating new tasks so you can execute them on your own thread pool when convenient would be nice. Basically fully replacing the pool implementation that comes with the library.

**Describe alternatives you've considered**
Suppose the alternative would be to not use the multi-threading feature within a single task, since we can already run individual compression tasks when convenient.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.