TOPLLab / WARDuino

📟 A dynamic WebAssembly VM for embedded systems
https://topllab.github.io/WARDuino/
Mozilla Public License 2.0
80 stars 7 forks source link

Compress memory in snapshots #244

Open MaartenS11 opened 5 months ago

MaartenS11 commented 5 months ago

It would be beneficial to compress memory when taking snapshots, especially when restoring snapshots on microcontrollers using the remote debugger. This would be particularly useful for cases where very little memory is used and thousands of 0's are sent over serial. Something simple like using run length encoding could reduce all these 0's to just two integers.