istepaniuk / jSend-Net

.NET implementation of the jSend decompression class
http://blog.istepaniuk.com/client-side-compression-with-javascript/
7 stars 1 forks source link

Algorithm is slow #1

Open TechGeorgii opened 12 years ago

TechGeorgii commented 12 years ago

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.

istepaniuk commented 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!