Closed jiapengwen closed 1 year ago
The library does not use any static memory that would hinder multithreading - maybe the operating system has limits on opening files? Can you share the files to have a reproducible setup?
my test file is large,average size is 300M,so i can not share,but you can construct array with 100M items,I think is because allocate memory too many times ,
Description
I have many to_msgpack binary file, like 1-1000;
I use multithreading read these binary file through from_msgpack;
int main() { { // change thread_num get different load cost time int thread_num = 20; vector th_pool;
for (int i = 0; i < thread_num; ++i) {
} return 0; }
Reproduction steps
see description
Expected vs. actual results
I think when use multithreading, the load cost time shoule almost the same. it looks like multithreading competition
Minimal code example
No response
Error messages
No response
Compiler and operating system
Linux DESKTOP-E1TD784 5.10.16.3-microsoft-standard-WSL2 #1 SMP Fri Apr 2 22:23:49 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
Library version
3.9.1
Validation
develop
branch is used.