Brion Vibber wrote:
>My recommendation under ideal circumstances would be to use closures (needs
>PHP 5.3) to wrap a parameter to your real callback; on older versions you
>could use create_function which is ugly, but probably not much worse for
>performance.

Thanks Brion. I have switched from create_function (our old implementation) to 
closures and it's certainly less ugly now.  I still wish I could create only 
the single callback needed, instead of 70 callbacks every single time one tag 
is used, but I don't have actual measurements to know if this is a noticeable 
performance drag. It just offends the computer scientist in me. :-)

DanB


_______________________________________________
Wikitech-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Reply via email to