wiki.techinc.nl/includes/utils
Timo Tijhof 6bf01cfaa3 resourceloader: Use FileContentsHasher batching in FileModule::getFileHashes
Instead of hashing each file separately, hash them in a batch.
Previous research on this area of code has identified the suppressing
and restoring of warnings to have a measurable cost, which is why
this was optimised in 3621ad0f82. However, we never really made
use if it (aisde from the 2:1 change in that commit itself), because
we always call it with a single item, turn it into an array, do the
hash and then merge it again.

Instead, we now let it handle a single module's set of files all
at once. Given that this no longer exposes an array of hashes,
also update the (private) signature of getFileHashes to reflect this.

This means all file modules will have their version bumped during the
next MediaWiki release. In general this happens for most releases
and weekly branches already (due to localisation update, general
maintenance, linting changes, and other internal changes). But,
noting here for future reference as this might not be obvious from
the diff.

Change-Id: I4e141a0f5a5c1c1972e2ba33d4b7be6e64ed6ab6
2019-12-17 11:56:22 +00:00
..
AutoloadGenerator.php
AvroValidator.php Suppress PhanUndeclaredProperty for custom properties and phan bugs 2019-09-14 13:22:54 +00:00
BatchRowIterator.php Remove duplicate variable name from class property PHPDocs 2019-12-02 12:58:29 +00:00
BatchRowUpdate.php
BatchRowWriter.php Fix new phan errors, part 4 2019-10-12 10:35:31 +00:00
ClassCollector.php Fix new phan errors, part 7 2019-10-21 22:10:20 +00:00
ExecutableFinder.php
FileContentsHasher.php resourceloader: Use FileContentsHasher batching in FileModule::getFileHashes 2019-12-17 11:56:22 +00:00
MWCryptHKDF.php
MWCryptRand.php
MWFileProps.php Unsuppress PhanParamsTooMany 2019-10-10 12:44:08 -07:00
MWRestrictions.php
README
RowUpdateGenerator.php
UIDGenerator.php Set visibility on php magic functions __destruct/sleep/wakeup/get/call 2019-12-05 18:52:55 +01:00
ZipDirectoryReader.php
ZipDirectoryReaderError.php Set method visibility for various constructors 2019-12-03 20:17:30 +01:00

The classes in this directory are general utilities for use by any part of
MediaWiki. They do not favour any particular user interface and are not
constrained to serve any particular feature. This is similar to includes/libs,
except that some dependency on the MediaWiki framework (such as the use of
MWException, Status or wfDebug()) disqualifies them from use outside of
MediaWiki without modification.

Utilities should not use global configuration variables, rather they should rely
on the caller to configure their behaviour.