Join GitHub today
Increase a lot (x4) boot sequence #181
The major point is the first one. I paste here the commit details:
With a simple PHPUnit setup and a 'regular' web page I got the following
I Profiler the page with blackfire.
I first updated the binary (see previous commit) but without success.
Then I tried to reproduce manually what happend. The chromedrive boot
Since we have a nice HTTP client Symfony, let's use it !
Here is the tcpdump of the dial between php and the driver
I initially thought it will increase only the very boot sequence, but actually it speeds up eveything.
With 3 tests:
Maybe could you use https://symfony.com/blog/new-in-symfony-4-2-wait-until-processes-are-ready too?
@dunglas this would require dropping support for symfony/process 3.4 LTS. As we already have a working solution here, that would be too bad.
Install version 4.3 of a new component in an existing project works without issue. But for existing component, it is harder (projects which are still using
As an aside to the code in the PR, and more about the validity of the changes, I ported the http client changes from this PR to my 3.4 compatible fork and used Guzzle to provide the http client. Happy to report it reduces the time taken to run a suite of 106 tests from
So, thanks a heap for figuring this out
I removed the commit where I updated the binaries because it breaks the tests:
This was not mandatory to make what I wanted ...
And I also squashed my commits