¿ªÔÆÌåÓý

Re: sbitx laggy because it writes user settings way too often #sBitx


 

On Thu, Jan 4, 2024 at 10:38 AM, rdg wrote:

Is sbitx making good use of RAM disks to cache disk writes thus extending SD card life and improve performance??

To expand upon this query, I would propose: 1. Malloc some memory in the heap (or get really fancy and use a memory-mapped file). 2. Write changes to memory 3. Update the SD Card at some reasonable interval (as has been discussed in this thread)

FWIW, I'm sure there's some code floating around on Github to do exactly this...

Extra points: Determine if the SD Card is being used for main storage, or there's an attached USB/NVMe drive (used for boot, so it's not going to be detached), and bypass the memory-stored settings since speed/latency and storage 'health' would not be a factor.

Join [email protected] to automatically receive all group messages.