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