Skip already uploaded files and add synchronization functionality #353
lukaskremla
started this conversation in
Ideas
Replies: 1 comment
-
FWIW : mpremote v1.24.0+ by default skips uploading unchanged files to a board (if the device has
This hinges on the fact that reading from flash is often much faster than writing it, therefore the penalty of reading to create a hash is much lower than writing too many files. If you approach is to reduce file writes to the device - then in my experience in attempting the same is that you also will need to account for:
Timings for : ESP32_GENERIC_S3 mpremote rm :large.txt
PS D:\> measure-command {mpremote cp large.txt : }
TotalSeconds : 2,2762847
PS D:\> measure-command {mpremote cp large.txt : }
TotalSeconds : 0,789586
PS D:\> measure-command {mpremote cp Xlarge.txt : }
8
TotalSeconds : 9,1412448
PS D:\> measure-command {mpremote cp Xlarge.txt : }
TotalSeconds : 0,8132274
PS D:\> dir .\large.txt
Directory: D:\
Mode LastWriteTime Length Name
---- ------------- ------ ----
-a--- 18-12-2024 18:22 7291 large.txt
-a--- 18-12-2024 22:32 28967 Xlarge.txt |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Moved (the code changed a lot and this became outdated)
Beta Was this translation helpful? Give feedback.
All reactions