Skip to content

Conversation

@cavac
Copy link

@cavac cavac commented Dec 11, 2025

File operations to the SD card were largely hampered by slow buffering in PSRAM. This change allows setting some defined to allocate SRAM buffers on fopen/fclose operations.

Combined with a few changes in the Tanmatsu launcher app, this increased SD card read and write speeds by roughly a factor of 10.

This, in turn, cuts down massively on the time required to transfer a file.

There are optimizations in the upload/download protocol as well. Should be backwards compatible, though, because it now supports protocol version negotiation.

@cavac cavac requested a review from renzenicolai December 16, 2025 15:13
@cavac
Copy link
Author

cavac commented Dec 16, 2025

This should be now much more sane. And the .proto is now updated.

(Slight change of plan: version number is now uint32 instead of uint16. I think there's a limitation with nanopb, but i'm not sure.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants