mirror of
https://thingvellir.net/git/overte
synced 2025-03-27 23:52:03 +01: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('finish', function(){
|
||||
console.log("GUNZIP DONE");
|
||||
});
|
||||
|
||||
req.pipe(gunzip).pipe(tar.extract(getRootHifiDataDirectory())).on('error', extractError).on('finish', function(){
|
||||
// response and decompression complete, return
|
||||
|
|
Loading…
Reference in a new issue