pbaisla / kthoom

Automatically exported from code.google.com/p/kthoom
MIT License
0 stars 0 forks source link

Unzipping is too slow #10

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
kthoom unzipping is very slow.  Need to investigate as many techniques as
possible to speed this up in the browser.

One idea I had was to create tree data structures for Huffman Code tables
instead of simple JS objects that I'm using.  JS objects means
number->string conversions for the keys.

Add further ideas below.

Original issue reported on code.google.com by codedr...@gmail.com on 11 Apr 2010 at 4:48

GoogleCodeExporter commented 8 years ago
Firefox 4 supports raw binary data: 
https://developer.mozilla.org/en/JavaScript_typed_arrays

Definitely worth investigating.

Original comment by codedr...@gmail.com on 19 Oct 2010 at 4:45

GoogleCodeExporter commented 8 years ago
Moving to TypedArrays definitely improves the performance of unzipping as of 
revision 5cb9333dae.  Unfortunately, Firefox 4 does not support 
FileReader.readAsArrayBuffer().  Closing this issue for now

Original comment by codedr...@gmail.com on 19 Feb 2011 at 8:45