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.
Unfortunately no one can be told what PunBB is - you have to see it for yourself.
You are not logged in. Please login or register.
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.
Powered by PunBB, supported by Informer Technologies, Inc.
Currently installed 5 official extensions. Copyright © 2003–2009 PunBB.