When writing a big file in small chunks, the write is getting slower and slower because of few locations that iterate on all the chunks from the beginning every time.
I optimized the seek function in FatIO (when seeking forward), write_data_to_cluster, and write_data_to_cluster (by caching the first free cluster)
Now writing 500MB in 0x4000 chunks takes few seconds instead of few minutes.
I planned on reworking/optimizing the seek/write code in the future; amazing work, thank you very much (again) for your contribution! :slightly_smiling_face:
When writing a big file in small chunks, the write is getting slower and slower because of few locations that iterate on all the chunks from the beginning every time.
I optimized the seek function in FatIO (when seeking forward), write_data_to_cluster, and write_data_to_cluster (by caching the first free cluster)
Now writing 500MB in 0x4000 chunks takes few seconds instead of few minutes.