Open TechGeorgii opened 12 years ago
Thanks root85, Feel free to make a pull request with these optimizations. The code was translated from the PHP counterpart (check http://blog.istepaniuk.com/client-side-compression-with-javascript/ ) It would be nice to add unit tests and then refactor and optimize without fear of breaking it :) I will add this as an issue!
You did a great job with this algorithm, but it can be easily optimized with more efficient string operations and classes, such as StringBuilder. Now it is slow.