Home

Add a comment

 

Avatar: pieroxy

Re: Just released: lz-string

My math may be failing me, but 16/6 = 266, hence the 166% bigger ;-) Not 166% of the original size. Remember compress returns a string where 16 bits are used per character. compressToBase64 produces a string where 6 bits are used per character.

Base128 really is a corner case, so I don't think it should be incorporated in the lib itself. It can be incorporated as an "add-on" for extra encoding options. You can submit a patch for a file called "lzstring-encoding.js" for example. I might add some other URL encoding as well in there. That sounds like a good idea.


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