Improved the performance of the autoloader
authorAlexander Ebert <ebert@woltlab.com>
Sun, 27 Feb 2022 12:56:19 +0000 (13:56 +0100)
committerAlexander Ebert <ebert@woltlab.com>
Sun, 27 Feb 2022 12:56:19 +0000 (13:56 +0100)
commit9bb05208a51a7c265e914f2b6bb15f3cdd9947a7
tree8e8a952838e63439ac26782679535843ea54e095
parentf63d645cb7851d13453320fa2961719f3fd66e54
Improved the performance of the autoloader

Using `isset()` is faster than using `count()` because it is a language construct and we only need to know if the index `1` exists. The autoloader is invoked hundreds of times per request, saving us ~1ms in total.
wcfsetup/install/files/lib/system/WCF.class.php