Permalink
Commits on Mar 3, 2016
  1. when on_finish and on_progress handlers are not set, function perform…

    gabonator committed Mar 3, 2016
    …s synchronously and returns compressed/decompressed buffer.
    
    The interface didn't allow to control the _writeEndMark flag, by setting LZMA.disableEndMark = true it omits end mark during compression resulting in smaller buffers
Commits on Nov 30, 2015
  1. Use typed arrays

    addaleax committed Oct 4, 2015
Commits on Nov 9, 2015
  1. .npmignore: bower.json

    nmrugg committed Nov 9, 2015
  2. fixing package.json

    nmrugg committed Nov 9, 2015
  3. line break

    nmrugg committed Nov 9, 2015
  4. Nodei.co

    nmrugg committed Nov 9, 2015
  5. 2.2.3

    nmrugg committed Nov 9, 2015
  6. Minified:

    nmrugg committed Nov 9, 2015
    lzma_worker.js
    Original size: 111129 bytes (108.5 KB)
    Minified size: 23771 bytes (23.2 KB)
    Compression:   4.6750 x smaller
    Gzipped size:  9321 bytes (9.1 KB)
    Gzipped ratio: 11.9224 x smaller
    
    lzma-c.js
    Original size: 85144 bytes (83.1 KB)
    Minified size: 18214 bytes (17.8 KB)
    Compression:   4.6746 x smaller
    Gzipped size:  7401 bytes (7.2 KB)
    Gzipped ratio: 11.5044 x smaller
    
    lzma-d.js
    Original size: 31399 bytes (30.7 KB)
    Minified size: 6879 bytes (6.7 KB)
    Compression:   4.5645 x smaller
    Gzipped size:  3021 bytes (3.0 KB)
    Gzipped ratio: 10.3936 x smaller
    
    lzma.js
    Original size: 6604 bytes (6.4 KB)
    Minified size: 1754 bytes (1.7 KB)
    Compression:   3.7651 x smaller
    Gzipped size:  784 bytes (0.77 KB)
    Gzipped ratio: 8.4235 x smaller
  7. Merge pull request #30 from addaleax/errorhandling

    nmrugg committed Nov 9, 2015
    Error handling
Commits on Oct 20, 2015
  1. Add large text file to tests

    addaleax committed Oct 14, 2015
  2. Use the TextEncoder/TextDecoder or Buffer API if available

    addaleax committed Oct 14, 2015
    Recent browsers provide an API (https://encoding.spec.whatwg.org/#api)
    for encoding/decoding strings, and Node.js provides Buffer,
    both of which are notably faster than a purely JS-based approach, so
    use these if available.
  3. Improve error handling

    addaleax committed Oct 12, 2015
    Pass a second `error` parameter to `on_finish`, indicating
    a failure in (de)compression, instead of (silently or
    not-so-silently) throwing an uncaught global Error.
  4. Include non-minified version of lzma_worker.js in node.js environment

    addaleax committed Oct 12, 2015
    There is nearly no harm in the large file size, since the file is not
    transferred over the wire, however debugging might get a lot easier
    in case it’s necessary.
Commits on Oct 19, 2015
  1. Minified:

    nmrugg committed Oct 19, 2015
    lzma_worker.js
    Original size: 110787 bytes (108.2 KB)
    Minified size: 23589 bytes (23.0 KB)
    Compression:   4.6966 x smaller
    Gzipped size:  9263 bytes (9.0 KB)
    Gzipped ratio: 11.9602 x smaller
    
    lzma-c.js
    Original size: 84923 bytes (82.9 KB)
    Minified size: 18118 bytes (17.7 KB)
    Compression:   4.6872 x smaller
    Gzipped size:  7350 bytes (7.2 KB)
    Gzipped ratio: 11.5541 x smaller
    
    lzma-d.js
    Original size: 31278 bytes (30.5 KB)
    Minified size: 6793 bytes (6.6 KB)
    Compression:   4.6044 x smaller
    Gzipped size:  2975 bytes (2.9 KB)
    Gzipped ratio: 10.5136 x smaller
    
    lzma.js
    Original size: 6383 bytes (6.2 KB)
    Minified size: 1656 bytes (1.6 KB)
    Compression:   3.8545 x smaller
    Gzipped size:  749 bytes (0.73 KB)
    Gzipped ratio: 8.5220 x smaller
  2. Leave worker() out of lzma_worker.

    nmrugg committed Oct 19, 2015
    This object is different from the one in lzma.js, so I feel fine with simply leaving worker() completely out.
    It should never be called in this context anyway.
  3. Minor stylistic fussiness.

    nmrugg committed Oct 19, 2015
  4. Merge pull request #33 from addaleax/terminateworker-to-worker

    nmrugg committed Oct 19, 2015
    Replace .terminateWorker() with .worker()
Commits on Oct 16, 2015
Commits on Oct 14, 2015
  1. Merge pull request #31 from addaleax/terminate-webworker

    nmrugg committed Oct 14, 2015
    Added .terminateWorker() to be able to garbage collect the Web Worker.
  2. Add the possibility to terminate Web Workers

    addaleax committed Oct 14, 2015
    This adds a `.terminateWorker` method to the lzma object
    which, if appropiate, terminates the associated web worker.
Commits on Oct 2, 2015
  1. Be able to run specific tests in the test script from the command line.

    nmrugg committed Oct 2, 2015
    Usage: node test-node.js [FLAGS] [TESTS]
  2. 2.2.2

    nmrugg committed Oct 2, 2015
  3. Merge pull request #26 from addaleax/chromium-webworker-stacksizelimit

    nmrugg committed Oct 2, 2015
    Decrease String.fromCharCode.apply parameter length to 16K
  4. Minified:

    addaleax committed Oct 2, 2015
    lzma_worker.js
    Original size: 110786 bytes (108.2 KB)
    Minified size: 23589 bytes (23.0 KB)
    Compression:   4.6965 x smaller
    Gzipped size:  9263 bytes (9.0 KB)
    Gzipped ratio: 11.9601 x smaller
    
    lzma-c.js
    Original size: 84923 bytes (82.9 KB)
    Minified size: 18118 bytes (17.7 KB)
    Compression:   4.6872 x smaller
    Gzipped size:  7350 bytes (7.2 KB)
    Gzipped ratio: 11.5541 x smaller
    
    lzma-d.js
    Original size: 31278 bytes (30.5 KB)
    Minified size: 6793 bytes (6.6 KB)
    Compression:   4.6044 x smaller
    Gzipped size:  2975 bytes (2.9 KB)
    Gzipped ratio: 10.5136 x smaller
    
    lzma.js
    Original size: 6182 bytes (6.0 KB)
    Minified size: 1597 bytes (1.6 KB)
    Compression:   3.8710 x smaller
    Gzipped size:  735 bytes (0.72 KB)
    Gzipped ratio: 8.4109 x smaller
  5. Decrease String.fromCharCode.apply parameter length to 16 KiB

    addaleax committed Oct 2, 2015
    According to Chromium issue 252492, the argument count limit
    for .apply in Web Workers is not 64 KiB, as for most scripts.
    Due to this, decompression of files with an uncompressed
    length of at least 64 KiB and more fails with
    
     RangeError: Maximum call stack size exceeded
    
    in Chromium Web Workers. A suggested workaround there is to
    use blocks of 16 KiB instead, which this patch implements.
    
    Commit which introduced the bug: 15a539b
    Chromium issue URI: https://code.google.com/p/chromium/issues/detail?id=252492
Commits on Sep 13, 2015
  1. Added bower to readme.

    nmrugg committed Sep 13, 2015