new feature(java binding): Use std::thread::available_parallelism
to replace num_cpus
#5078
Labels
bindings/java
enhancement
New feature or request
good first issue
Good for newcomers
help wanted
Extra attention is needed
Feature Description
opendal/bindings/java/Cargo.toml
Line 160 in e869a70
Java binding uses
num_cpus
to get cpu cores. It's better to replace with std'savailable_parallelism
.Problem and Solution
Use
std::thread::available_parallelism
to replacenum_cpus
Additional Context
No response
Are you willing to contribute to the development of this feature?
The text was updated successfully, but these errors were encountered: