Question

When developing for Magento 2 one of the more time consuming system tasks is running bin/magento setup:di:compile.

Since the compiler executes several tasks in a queue, I'm thinking executing them all at once would increase compiling speed by using a separate php process / core per task?

This is of course only possible when the queued tasks don't depend on each others execution result.

I'm not very familiar with the details of the compiling process, maybe someone can elaborate whether this solution would be feasible / possible at all?

Was it helpful?

Solution

When you developing for Magento 2 you should not run setup:di:compile.

As the maximum, you need cleanup var/generated folder and clean caches.

var/di folder contains serialized data about class constructor parameters/inheritance that not need in developer mode.

Licensed under: CC-BY-SA with attribution
Not affiliated with magento.stackexchange
scroll top