I'm aware this might not fall strictly into the stack exchange rules, however there seems to be growing frustration within the magento 2 world of development, but somewhere needs to try help people as the magento team are always shutting down tickets regarding performance.
—
This question is not about performance on production servers, so please no recommendations for things like varnish, redis, minifying/concatenating files etc.
—
What have people found to be the most optimal setups for having a fast streamlined magento 2.2+ development environment, for both Windows and OSX.
Keeping in mind the following
- Docker
- Vagrant
- Mamp/Wamp
- Native binaries with apache/nginx
- Grunt/Asset generation performance
- Postgres, MySQL, Maria etc
—
Personally we've found they've all been slow in the ways we've attempted, including using Laravel Valet, Vagrant, OSX apache/php-fcgi – and they're all terrible.
—
What have others found to be good setups as certain users seem to think we all must just be doing it wrong, without shedding any light onto their solutions.
Best Answer
My solution is migrating to Linux without virtualization.
Equip:
Env:
Results (reloading homepage)
Preconditions:
with xdebug enabled ~10 seconds
with xdebug disabled ~7 seconds
And this is 3 times faster than it was on windows.
P.S. I'm not sure this is the best solution, but I feel much better after doing that. I also was wondered that nginx allows to run different php-fpm-es depending on hosts settings. this is really cool. Now I even don't need to switch between PHP versions.