Question

How to run fast command line setup:di:compile.

I was waiting so long, if can you show me why?

enter image description here

Was it helpful?

Solution

Well, unfortunately apart from improving your hardware there is no way you can make that command faster.

This command is the Magento code compilation.

Code compilation consists of all of the following in no particular order:

  • Application code generation (factories, proxies, and so on)
  • Area configuration aggregation (that is, optimized dependency injection configurations per area)
  • Interceptor generation (that is, optimized code generation of interceptors)
  • Interception cache generation
  • Repositories code generation (that is, generated code for APIs)
  • Service data attributes generation (that is, generated extension classes for data objects)

Because of all those actions the compiler needs to take, it has to take time.

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