mirror of
https://github.com/overte-org/overte.git
synced 2025-08-06 22:39:18 +02:00
allow zlib as much memory as possible for faster speed
This commit is contained in:
parent
db4f1a8acb
commit
149bf0be92
1 changed files with 6 additions and 1 deletions
|
@ -582,8 +582,13 @@ function maybeInstallDefaultContentSet(onComplete) {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
var gunzip = zlib.createGunzip();
|
var gunzip = zlib.createGunzip({
|
||||||
|
level: 9
|
||||||
|
});
|
||||||
gunzip.on('error', extractError);
|
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(){
|
req.pipe(gunzip).pipe(tar.extract(getRootHifiDataDirectory())).on('error', extractError).on('finish', function(){
|
||||||
// response and decompression complete, return
|
// response and decompression complete, return
|
||||||
|
|
Loading…
Reference in a new issue