Home

Add a comment

 

Re: demo page over reports the uncompressed size

I'm not presently doing anything with LZString (other than playing around with it); I was merely pointing out how one could easily get LZString to work with 8-bit IO if need be. As to why one would want/need to do so, interfacing with existing code/libs that expect 8-bit IO is one reason. For example, I have several existing Base85 (et al) transcoders that operate on 8-bit IO (be it string or array); 16-bit IO from existing compress/decompress won't work as-is. I could write extra wrapper code to work with/around the 16-bit chars, but changing 2 numbers was faster/easier/cleaner (especially since I'm just evaluating and don't want to invest much time/effort...yet anyway). Just as your own code tweaks those values to align on 6-bit boundaries for Base64, one can similarly tweak them to align on 8-bit boundaries (e.g. for Base85). Naturally one would not want to use 8-bit when multibyte is a possibility, but there are numerous scenarios/standards/encodings where 8-bit values are guaranteed.

Re: demo page over reports the uncompressed size


Title
Body
HTML : b, strong, i, em, blockquote, br, p, pre, a href="", ul, ol, li, sub, sup
OpenID Login
Name
E-mail address
Website
Remember me Yes  No 

E-mail addresses are not publicly displayed, so please only leave your e-mail address if you would like to be notified when new comments are added to this blog entry (you can opt-out later).

Home