I\'m looking for a JavaScript function that given a string returns a compressed (shorter) string.
I\'m developing a Chrome web application that saves long strings (H
Try experimenting with textfiles before implementing anything because I think that the following does not necessarily hold:
so I figured it would help keep the database smaller if I compressed the things it stores.
That's because lossless compression algorithms are pretty good with repeating patterns (e.g whitespace).