allow zlib as much memory as possible for faster speed

This commit is contained in:
Stephen Birarda 2016-04-11 17:41:05 -07:00
parent db4f1a8acb
commit 149bf0be92

View file

@ -582,8 +582,13 @@ function maybeInstallDefaultContentSet(onComplete) {
});
}
var gunzip = zlib.createGunzip();
var gunzip = zlib.createGunzip({
level: 9
});
gunzip.on('error', extractError);
gunzip.on('finish', function(){
console.log("GUNZIP DONE");
});
req.pipe(gunzip).pipe(tar.extract(getRootHifiDataDirectory())).on('error', extractError).on('finish', function(){
// response and decompression complete, return