开发者

Few fat models vs. many slim models in CodeIgniter

开发者 https://www.devze.com 2022-12-23 09:15 出处:网络
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

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

精彩评论

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

关注公众号