AutoLoader: Skip tokenizing of irrelevant lines in ClassCollector
authorTimo Tijhof <krinklemail@gmail.com>
Tue, 18 Jun 2019 17:26:06 +0000 (18:26 +0100)
committerKrinkle <krinklemail@gmail.com>
Wed, 19 Jun 2019 15:09:49 +0000 (15:09 +0000)
commit8035a00e8cf2bd3db6e8dbe0710cd3816a00c97a
tree7eb803e2dbc2ebb5668eedb93476336c7363c635
parent8b22883a66bcc7d54be7acb9898defa545751f86
AutoLoader: Skip tokenizing of irrelevant lines in ClassCollector

This makes AutoLoaderStructureTest in PHPUnit and the
generateLocalAutoload.php maintenance script much faster.

On my machine, it made it 35X faster (or time spent reduced by 97%).

Bug: T225730
Change-Id: Ife959bd17ce9c2ae952dfbd158ddb3d8475e8cb2
includes/utils/ClassCollector.php
tests/phpunit/includes/utils/ClassCollectorTest.php
tests/phpunit/structure/AutoLoaderStructureTest.php