|
Data compression is not an exact science; there's no way to guarentee that a string of 600 characters can be compressed to 400. Javascript compression is also likely to be pretty slow.
That said, have you looked up Huffman Coding? That's a pretty simple compression algorithm.
|