Closed
Description
Q | A |
---|---|
Bug report? | yes |
Feature request? | no |
BC Break report? | no |
RFC? | no |
Symfony version | 3.3.x |
I'm only certain that this effects applications that use the PHPunit Bridge, but other bundles may have the same issue.
#21837 registers the class_exists
loader for annotations which is also added by https://github.com/symfony/phpunit-bridge/blob/master/bootstrap.php#L24
This effectively doubles the calls to class_exists
which doubles the calls to spl_autoload_call
and makes tests very slow. In one sample test I was seeing 90K more calls to this function. I have created PRs at:
doctrine/annotations#135
symfony/phpunit-bridge#1
As I think this issue should be addressed elsewhere, but I wanted to create this ticket to advertise this problem and seek any advice or recommendations for a better fix.
Metadata
Metadata
Assignees
Labels
No labels