What performance overhead do IoC containers involve?

后端 未结 3 1677
暖寄归人
暖寄归人 2021-02-06 06:25

Loose coupling is wonderful of course, but I have often wondered what overhead wiring up dynamically using an IoC container (for example Castle Windsor) has over a tightly coupl

3条回答
  •  無奈伤痛
    2021-02-06 06:58

    You'll have slower initialization times, as everything is loaded when the container is started. If init time doesn't matter to you, everyone's a winner on that chuck-a-luck wheel.

提交回复
热议问题