DEV Community

Discussion on: Optimizing your PHP app speed

Collapse
 
goodevilgenius profile image
Dan Jones

The "compiler" (opcode producer) will look into the current namespace, then go up, and eventually use the global namespace.

So, once it's compiled, wouldn't there be no performance difference between \count and count?

So, if I use your first suggestion, I don't need your last suggestion.

And if I use opcache_compile_file on all my PHP files during deployment, an end-user never hits an uncompiled file.