pop-os / distinst

Installer Backend
GNU Lesser General Public License v3.0
222 stars 43 forks source link

Optimize Partition Moving Algorithm #51

Open mmstick opened 6 years ago

mmstick commented 6 years ago

Source Code: https://github.com/pop-os/distinst/blob/master_bionic/src/disk/operations/move_and_resize.rs#L306:L327

There's a lot of room for some optimization of partition moving here. The current code is very basic. We could easily improve performance by utilizing chunks to perform buffered read/write operations (no more than 64 MB at a time, of course -- 16 MB is probably a good number).

jwillikers commented 4 years ago

@mmstick, I was going to look into this issue, but the source code link is invalid. Does this still need done?