symfony - Is there a reason Commands are Slower than normal Requests? -


i refactoring code transform actions in commands in symfony 2.7 application.

at first, making request endpoint, corresponding controller making call service , responded 200 http response.

now, want execute service command interface use console component of symfony.

the problem is: command way very, slow. there reason that?

commands, default, run in dev environment, meaning more logging, capturing data profiler...

try appending --env=prod.


Comments

Popular posts from this blog

java - Static nested class instance -

c# - Bluetooth LE CanUpdate Characteristic property -

JavaScript - Replace variable from string in all occurrences -