7

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

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

enter image description here

1
  • 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 Commented Sep 22, 2017 at 9:25

1 Answer 1

8

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.

2

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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