-
Notifications
You must be signed in to change notification settings - Fork 164
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
copy_file is around 6 times slower than it was in 1.70 #186
Comments
What OS are you running? If Linux, what is your kernel version? |
I'm running on But the problem also occurs on computers of my colleagues and for our test suites. And, another observation, if I comment these lines in
the degradation is gone. So apparently it's the syncing taking time. |
It is expected then. The comment above that call explains why syncing is performed. |
Sure, I read it. But the std library (C++17) doesn't do this. Shouldn't they be compatible? I think that the syncing, if any, should be optional. At any rate, there should not be a regression of 6 times which cannot be avoided somehow. |
Thanks for the fix! |
Upgrading Boost from 1.70 to 1.75 we discovered that the performance of copy_file is quite decreased.
Especially if you copy many small files this is noticeable.
Here are my measurements (3 runs of both versions):
(I clean the file cache before each run using
echo 3 | sudo tee /proc/sys/vm/drop_caches
)Attached the minimal example, creating these measurements, copying the "boost" folder from Boost (15344 files on my system)
use_boost_fs.cpp.zip
The text was updated successfully, but these errors were encountered: