Juan Cruz Viotti

Results 308 comments of Juan Cruz Viotti

What could work really well for me is a function that decompresses a single chunk independently on the context (not sure if that can be done with Bzip2). I've tried...

Oh, I just noticed `Bzip2.js` exports an undocumented `decompressBlock` function. It accepts a `pos` argument which seems to be used for seeking purposes (https://github.com/cscott/compressjs/blob/master/lib/Bzip2.js#L488), however what does it mean? I...

To make things worse, such test case has the following test file -> blocks definitions: ``` [{file:'sample2',blocks:[544888]}, {file:'sample4',blocks:[32,1596228,2342106]}].forEach(function(o) { ``` `sample2` is 73732 bytes and `sample4` is 305260. What do...

OK, so as far as I understand, `pos` refers to the block inside a buffer that you want to decompress. 0 decompresses the first block, 1 decompresses the second block,...

So it seems that I misunderstood what "blocks" mean in this context: See http://www.bzip.org/1.0.3/html/memory-management.html > bzip2 compresses large files in blocks. The block size affects both the compression ratio achieved,...

I found a nice streaming example in your `seek-bzip` module (https://github.com/cscott/seek-bzip/blob/master/test/stream.js), which I adapted to the following: ```javascript var Bunzip = require('seek-bzip'); var stream = require('stream'); var Fiber = require('fibers');...

Weird, I can't reproduce. What OS are you in and what Node.js/npm versions are you running? I'm on macOS Sierra Node.js v6.1.0 and npm v3.10.10 and everything works like a...

Does running with the same versions as me make any difference?

The module should mirror its internal cache to the disk as soon as any operation is complete.

Hey @zellyn ! The idea of JSON BinPack and its strong focus on space-efficiency was originated in the context of IoT, where companies may deploy devices to extremely remote locations,...