Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Slow startup on Windows #147

Open
OndraM opened this issue Jun 3, 2017 · 2 comments
Open

Slow startup on Windows #147

OndraM opened this issue Jun 3, 2017 · 2 comments

Comments

@OndraM
Copy link
Member

OndraM commented Jun 3, 2017

It looks like Steward starts slowly on Windows.

Linux, native:

$ time vendor/bin/steward
real    0m0,096s
user    0m0,061s
sys     0m0,037s

Windows, Git BASH, the same machine (but in VirtualBox, which itself slows it down a bit)

$ time vendor/bin/steward
real    0m10,676s
user    0m0,000s
sys     0m0,020s

This should be profiled using eg. blackfire.io to find the root cause. (https://blackfire.io/docs/cookbooks/profiling-cli)

@OndraM
Copy link
Member Author

OndraM commented Jun 3, 2017

For comparison phpunit startup time on the same machine on Windows:

$ time ./vendor/bin/phpunit

real    0m0,723s
user    0m0,020s
sys     0m0,020s

@OndraM
Copy link
Member Author

OndraM commented Jun 4, 2017

So I managed to do profiling on Windows. This is the result:
https://blackfire.io/profiles/01d6b9cc-4b43-4c07-928b-100508d6baae/graph.

The issue is in searchListeners() method of ListenerInstantiator class - obviously the way we do autodiscovery of listeners is slow on Windows filesystem :-/.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant