WARDuino icon indicating copy to clipboard operation
WARDuino copied to clipboard

🐎 RLE for memory in snapshots

Open MaartenS11 opened this issue 1 year ago • 2 comments

Currently only uses run length encoding to transfer snapshots from the microcontroller to the computer, not the other way around. The VSCode plugin will need changes to be able to reconstruct the actual bytes in memory.

MaartenS11 avatar Sep 26 '24 11:09 MaartenS11

💥 Breaking change warning TOPLLab/WARDuino-VSCode will not be able to parse the new snapshots

tolauwae avatar Sep 26 '24 13:09 tolauwae

I want to add this change for the new major release @MaartenS11 If you need any help, you can ping me

tolauwae avatar Sep 26 '24 13:09 tolauwae

@MaartenS11 so you implemented a simple run-length encoding yourselves? And it just shortens consecutive strings as the pattern and number of occurrences separated by a comma? pattern,count And it does this every time, even when the count is one.

Is that correct?

tolauwae avatar Dec 02 '24 19:12 tolauwae

@MaartenS11 so you implemented a simple run-length encoding yourselves? And it just shortens consecutive strings as the pattern and number of occurrences separated by a comma? pattern,count And it does this every time, even when the count is one.

Is that correct?

It's count,pattern but besides that, yes that's how it works. You can't really not do it for sequences of length 1 because you have no way to identify if the byte is a count or the pattern itself.

MaartenS11 avatar Dec 03 '24 09:12 MaartenS11