Skip to content

copy_file is around 6 times slower than it was in 1.70 #186

@barendgehrels

Description

@barendgehrels

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):

107500 - copy /home/gehrels/current_boost/boost time 42933 ms
107500 - copy /home/gehrels/current_boost/boost time 43256 ms
107500 - copy /home/gehrels/current_boost/boost time 42684 ms

107000 - copy /home/gehrels/current_boost/boost time 6646 ms
107000 - copy /home/gehrels/current_boost/boost time 6844 ms
107000 - copy /home/gehrels/current_boost/boost time 6574 ms

(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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions