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

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

enter image description here

  • 2
    Wow this is really annoying if you have waiting for that long. how many module that you have installed here ? I just want to know – Gujarat Santana Sep 22 '17 at 9:25

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.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.