From 1f2fb732973e37ad00420457299b306fb2907794 Mon Sep 17 00:00:00 2001 From: "Dylan K. Taylor" Date: Sun, 2 Feb 2020 10:21:32 +0000 Subject: [PATCH 1/3] updated DevTools submodule to 1.14.0 --- tests/plugins/PocketMine-DevTools | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/plugins/PocketMine-DevTools b/tests/plugins/PocketMine-DevTools index 73c96dfdb..8f5f3009f 160000 --- a/tests/plugins/PocketMine-DevTools +++ b/tests/plugins/PocketMine-DevTools @@ -1 +1 @@ -Subproject commit 73c96dfdbac9c9d44f3b10192540d7ff71a1051b +Subproject commit 8f5f3009f98980c49226871d149d103e77089e08 From 963abb718ffe0c793aef7d2a70e8ee4911587562 Mon Sep 17 00:00:00 2001 From: "Dylan K. Taylor" Date: Sun, 2 Feb 2020 16:27:38 +0000 Subject: [PATCH 2/3] build/server-phar: compress using gzip (except stub) this produces a 75% reduction in phar size, at the expense of a slight degradation of autoloading speed and needing a writable tmpdir. --- build/server-phar.php | 29 ++++++++++++++++++++--------- 1 file changed, 20 insertions(+), 9 deletions(-) diff --git a/build/server-phar.php b/build/server-phar.php index 394e0f62c..f173b969d 100644 --- a/build/server-phar.php +++ b/build/server-phar.php @@ -104,14 +104,9 @@ function buildPhar(string $pharPath, string $basePath, array $includedPaths, arr yield "Added $count files"; if($compression !== null){ - yield "Checking for compressible files..."; - foreach($phar as $file => $finfo){ - /** @var \PharFileInfo $finfo */ - if($finfo->getSize() > (1024 * 512)){ - yield "Compressing " . $finfo->getFilename(); - $finfo->compress($compression); - } - } + yield "Compressing files..."; + $phar->compressFiles($compression); + yield "Finished compression"; } $phar->stopBuffering(); @@ -137,7 +132,23 @@ function main() : void{ [ 'git' => $gitHash ], - ' Date: Sun, 2 Feb 2020 16:30:00 +0000 Subject: [PATCH 3/3] travis: remove xdebug to improve build time xdebug is almost completely useless here. --- .travis.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.travis.yml b/.travis.yml index 284bc28b7..03b953883 100644 --- a/.travis.yml +++ b/.travis.yml @@ -5,6 +5,7 @@ php: - 7.3 before_script: + - phpenv config-rm xdebug.ini # - pecl install channel://pecl.php.net/pthreads-3.1.6 - echo | pecl install channel://pecl.php.net/yaml-2.0.4 - git clone https://github.com/pmmp/pthreads.git