Nemo bis has uploaded a new change for review. https://gerrit.wikimedia.org/r/186347
Change subject: Use a faster 7z command line by default ...................................................................... Use a faster 7z command line by default In tests with one typical XML dump, -mx=4 looked much better than -mx=5 in terms of CPU cost, with negligible losses in compression. https://github.com/Wikia/app/pull/5799 It probably makes sense to explicitly adopt a default suitable for XML dumps; but later this should be configurable in scripts etc. (T78669). Change-Id: I07ab5f93ecd6d706460691db5181de89ef31cbea --- M includes/Export.php 1 file changed, 1 insertion(+), 1 deletion(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core refs/changes/47/186347/1 diff --git a/includes/Export.php b/includes/Export.php index 4600feb..0d55d7d 100644 --- a/includes/Export.php +++ b/includes/Export.php @@ -1191,7 +1191,7 @@ * @return string */ function setup7zCommand( $file ) { - $command = "7za a -bd -si " . wfEscapeShellArg( $file ); + $command = "7za a -bd -si -mx=4 " . wfEscapeShellArg( $file ); // Suppress annoying useless crap from p7zip // Unfortunately this could suppress real error messages too $command .= ' >' . wfGetNull() . ' 2>&1'; -- To view, visit https://gerrit.wikimedia.org/r/186347 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I07ab5f93ecd6d706460691db5181de89ef31cbea Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/core Gerrit-Branch: master Gerrit-Owner: Nemo bis <[email protected]> _______________________________________________ MediaWiki-commits mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
