#15443speedup of USER functions
Description
Hi,
during the integration of CSC, Ernesto has observed that if the object is a USER cObject, it will be a lot slower than normal.
I have looked for anything which might relate to it… And it seems to be in tslib_content::callUserFunction
call_user_func and call_user_method are used here. In a note on PHP.net of call_user_func I found the following:
—snip—
You should avoid this function and use variable function calls instead!
The main reason for this is the fact that you will generate twice as many function calls as actually needed.
Thus, your server will encounter twice the load of function calls.
—snip—
Can anybody confirm this? If this is an issue, we should change it to use variable function calls. Are there any drawbacks with this?
Greets, Sebastian
(issue imported from #M2304)
Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.