Topic: From eval to include
I noticed that PunBB uses eval() for extension hooks. Would it be better for performance to save code to file and include them. This would be better for PHP cachers and optimisers as they don't work on dynamic code.
You are not logged in. Please login or register.
PunBB Forums → PunBB 1.3 discussion → From eval to include
I noticed that PunBB uses eval() for extension hooks. Would it be better for performance to save code to file and include them. This would be better for PHP cachers and optimisers as they don't work on dynamic code.
It might be faster, but also more difficult to maintain.
I haven't studied the PunBB source but in theory it should be fairly straightforward. Instead of saving and reading code from a dynamically generated PHP array it would be written to file with a unique path name.
PunBB Forums → PunBB 1.3 discussion → From eval to include
Powered by PunBB, supported by Informer Technologies, Inc.