Reduced chunk compression level to 7

According to benchmarks 8 and 9 are simply orders of magnitude slower while not saving enough bytes to make it worth the performance loss. 7 is a good balance.
This commit is contained in:
Dylan K. Taylor 2017-10-01 09:20:14 +01:00
parent edd0189d59
commit 49ac2555ce

View File

@ -72,7 +72,7 @@ class ChunkRequestTask extends AsyncTask{
$batch = new BatchPacket();
$batch->addPacket($pk);
$batch->setCompressionLevel(9);
$batch->setCompressionLevel(7);
$batch->encode();
$this->setResult($batch->buffer, false);