-
Notifications
You must be signed in to change notification settings - Fork 939
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
Creating a new project is too slow #162
Comments
Check your filesystem speed, disable CLI xdebug, and ideally use PHP7.
|
I've also seen times go down drastically by using https://github.com/hirak/prestissimo
Which parallelizes package downloads for |
As of 0.3.1 it does! https://github.com/hirak/prestissimo/releases/tag/0.3.1 Sidenote: @jameswilson you're based in Cuenca?! At the moment I'm in the US for a few months, but it would be awesome to meet up with some Drupal developers when I get back. Any meetups in the area maybe? :) |
@oxyc I'll be in Cuenca 'till mid July. There are no other "local" Drupal developers in Cuenca to my knowledge. If you know some, let me know. |
thanks for the help guys! @weitzman I'll disable xdebug because I think is enabled. I'm using nfs because of docker-machine on MacOSX, maybe thats why, but we test it on linux and it took around 25 minutos. I tried prestissimo before and didn't parallelize, so maybe the new version 0.3.1 works now :) Could you guys show some profiling from your side? to compare our results? |
@sebas5384 over at Drupal VM where we provision an entire dev environment (php, mysql, apache etc etc) I did some benchmarking of how switching to Later on I also ran some tests locally and it ended up taking ~300 sec to build |
Just took me about 8 minutes. FYI, I just did this with no xdebug, no NFS, PHP7, no virtualization, and an SSD. Note that a bunch of projects downloaded from cache so perhaps not a good comparison
|
One more way to speed up composer, which I haven't tried but came up as an option in a meeting I had today with my team was to use the You can code this into your "config": {
"preferred-install": "dist"
}, A comment on this post mentions this may only work with packages hosted on GitHub. No word about Drupal.org packages though, so YMMV. Sorry I haven't had a chance to test this out, wanted to reply here before I forgot about this. |
I use following composer package and github token to speed up my composer
|
The drupal.org endpoint is much faster than the previous one. Closing for now. I don't have any new insights on this topic. |
Here's the time this is taking:
Is this normal? I'm doing something wrong?
thanks!
The text was updated successfully, but these errors were encountered: