php namespace benchmark

后端 未结 2 884
执念已碎
执念已碎 2021-01-12 13:28

Does using namespaces make a site faster or slower? That\'s what I would like to know.

If it helps improving site performance, then i would like to start using it ri

2条回答
  •  忘掉有多难
    2021-01-12 14:14

    PHP Namespaces are largely if not totally irrelevant for the performance of your site. They aid you at writing well-encapsulated and structured code - that's why you should not be afraid to use them, at least if your project reaches a certain complexity.

    If you're really worried about performance, you should profile first and check where your real bottlenecks lie.

提交回复
热议问题