Skip to content

Tests are signifcantly slower in 3.3.x compared to 3.2.10 #23419

Closed
@jrjohnson

Description

@jrjohnson
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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions