开发者

Few fat models vs. many slim models in CodeIgniter

Any difference, performance开发者_开发技巧-wise?


It's too situation dependent to give a canonical answer. With fat models PHP will be compiling a larger class to opt-code on each request cycle, much of which it doesn't need. With many thin models PHP will need to instantiate more classes at run-time for your application to work. Each could become a theoretical performance bottleneck under different situations (although your actual database connection will become a problem long before that).

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜