Live data from Hacker News

Zip.js - A JavaScript library to zip and unzip files

gildas-lormeau.github.com

21–25 of 25 posts

Re: Zip.js - A JavaScript library to zip and unzip files

#21

Earlier quoted context omitted.

I just tested with a 42 MB text log file under OS X 10.7.2. Using zip 3.0: $ time zip logfile.zip logfile.log adding: logfile.log (deflated 89%) real 0m1.170s user 0m0.947s sys 0m0.030s Resulting file size: 4,551,020 bytes Using Chrome 16.0.912.77: 4.7s - 1st drop 5.5s - 2nd drop 5.2s - 3rd drop 5.1s - 4th drop Average 5.125s (timed using stopwatch) Resulting file size: 4,547,885 bytes Size: Advantage Zip.js by 3,135…

Zip.js only has a .069% size advantage over zip 3.0 given your numbers (4,551,020 bytes & 4,547,885 bytes respectively). Your calculation of 6.8% better than zip just seemed too impressive.

Sorry, was off by a factor of 100.

Showing the math:

    zip        = 4,551,020
    zipjs      = 4,547,885
    diff       = zip - zipjs    => 3,135 bytes
    pctng_diff = diff/zip × 100 => 0.0688856564%

Re: Zip.js - A JavaScript library to zip and unzip files

#22
Might have been my poor connection or the file size limit, I just got this screen shot http://dl.dropbox.com/u/9694286/zip.js/ScreenShot2012-02-01a...

Here is the zip output http://dl.dropbox.com/u/9694286/zip.js/123Example.zip

And finally the guilty upload http://dl.dropbox.com/u/9694286/zip.js/search-engine-optimiz...

Hope it helps debug or something!

Re: Zip.js - A JavaScript library to zip and unzip files

#23
post #22

Might have been my poor connection or the file size limit, I just got this screen shot http://dl.dropbox.com/u/9694286/zip.js/ScreenShot2012-02-01a... Here is the zip output http://dl.dropbox.com/u/9694286/zip.js/123Example.zip And finally the guilty upload http://dl.dropbox.com/u/9694286/zip.js/search-engine-optimiz... Hope it helps debug or something!

Thanks for the report. The zip file seems to be valid: I can open it without any issues with 7zip (on Win7). The "read zip demo" [1] is also able to open it and extract the compressed PDF. What zip software do you use?

[1] http://gildas-lormeau.github.com/zip.js/demos/demo2.html

Re: Zip.js - A JavaScript library to zip and unzip files

#24
post #23
post #22

Might have been my poor connection or the file size limit, I just got this screen shot http://dl.dropbox.com/u/9694286/zip.js/ScreenShot2012-02-01a... Here is the zip output http://dl.dropbox.com/u/9694286/zip.js/123Example.zip And finally the guilty upload http://dl.dropbox.com/u/9694286/zip.js/search-engine-optimiz... Hope it helps debug or something!

Thanks for the report. The zip file seems to be valid: I can open it without any issues with 7zip (on Win7). The "read zip demo" [1] is also able to open it and extract the compressed PDF. What zip software do you use? [1] http://gildas-lormeau.github.com/zip.js/demos/demo2.html

Native from OSX 10.7

Re: Zip.js - A JavaScript library to zip and unzip files

#25
post #24
post #23

Earlier quoted context omitted.

Thanks for the report. The zip file seems to be valid: I can open it without any issues with 7zip (on Win7). The "read zip demo" [1] is also able to open it and extract the compressed PDF. What zip software do you use? [1] http://gildas-lormeau.github.com/zip.js/demos/demo2.html

Native from OSX 10.7

Thanks! Unfortunately, I don't own a Mac so it will take some time to fix this bug.
Post reply on HN