RHML - A Retro Computing Web Protocol

Thanks for checking this project out.  RHML is a simple protocol being developed to provide a web-like experience for retro computing enthus...

Thursday, July 26, 2018

RLE Compression

One thing I want to add to the server and client is a simple RLE compression to help in transmission speed. The idea is that the server will perform compression such as with bitmaps. So it will read the image data:

 *X,....XXXX...XXXXXX

 and then perform compression to send the following:

 *X,^4.^4X^3.^6X

 The client would reverse the process. This saves on transmission time without forcing the page to be compressed. I will try this first for images and see how it works, then maybe try for other elements as well. But images would provide the most benefit.

Update:  Newest build adds compression.  It doesnt work exactly like the above, but there was a simple code fragment available that did it readily.  Works pretty good.

No comments:

Post a Comment