Home

Add a comment

 

Avatar: pieroxy

Re: Just released: lz-string

I would suggest to prepend all versions (whether it's compressed or not) by one character. Let's say if you compress you prepend the result with 'z' and if you don't, you prepend with '_' for example. Then, on the decompress side, you check the first char of your string and decide if you should decompress or not depending on this char.

That said, if you plan on storing those strings locally (in the browser), no matter what size is you string you'll most likely get a smaller version with LZString.


Re: Just released: lz-string


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