Skip to content

Commit

Permalink
Minified:
Browse files Browse the repository at this point in the history
lzma_worker.js
Original size: 116809 bytes (114.1 KB)
Minified size: 25439 bytes (24.8 KB)
Compression:   4.5917 x smaller
Gzipped size:  9863 bytes (9.6 KB)
Gzipped ratio: 11.8432 x smaller

lzma-c.js
Original size: 89546 bytes (87.4 KB)
Minified size: 19586 bytes (19.1 KB)
Compression:   4.5719 x smaller
Gzipped size:  7830 bytes (7.6 KB)
Gzipped ratio: 11.4363 x smaller

lzma-d.js
Original size: 33761 bytes (33.0 KB)
Minified size: 7452 bytes (7.3 KB)
Compression:   4.5305 x smaller
Gzipped size:  3198 bytes (3.1 KB)
Gzipped ratio: 10.5569 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
  • Loading branch information
nmrugg committed Jun 5, 2015
1 parent 89c2d2f commit 0321c0b
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/lzma-c-min.js

Large diffs are not rendered by default.

5 changes: 4 additions & 1 deletion src/lzma-c.js
Expand Up @@ -46,7 +46,10 @@ var LZMA = (function () {
Object_0 = make_thing({});

function initDim(len) {
return new Array(len);
///NOTE: This is MUCH faster than "new Array(len)" in newer versions of v8 (starting with Node.js 0.11.15, which uses v8 3.28.73).
var a = [];
a[len - 1] = undefined;
return a;
}

function add(a, b) {
Expand Down
2 changes: 1 addition & 1 deletion src/lzma-d-min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion src/lzma-d.js
Expand Up @@ -44,7 +44,10 @@ var LZMA = (function () {
Object_0 = make_thing({});

function initDim(len) {
return new Array(len);
///NOTE: This is MUCH faster than "new Array(len)" in newer versions of v8 (starting with Node.js 0.11.15, which uses v8 3.28.73).
var a = [];
a[len - 1] = undefined;
return a;
}

function add(a, b) {
Expand Down
4 changes: 2 additions & 2 deletions src/lzma_worker-min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/lzma_worker.js
Expand Up @@ -55,7 +55,7 @@ var LZMA = (function () {
Object_0 = make_thing({});

function initDim(len) {
//NOTE: This is MUCH faster than "new Array(len)" in newer versions of v8 (starting with Node.js 0.11.15, which uses v8 3.28.73).
///NOTE: This is MUCH faster than "new Array(len)" in newer versions of v8 (starting with Node.js 0.11.15, which uses v8 3.28.73).
var a = [];
a[len - 1] = undefined;
return a;
Expand Down

0 comments on commit 0321c0b

Please sign in to comment.