Project

General

Profile

Actions

Bug #15443

closed

speedup of USER functions

Added by Sebastian Kurfuerst almost 19 years ago. Updated about 16 years ago.

Status:
Closed
Priority:
Should have
Category:
-
Target version:
-
Start date:
2006-01-18
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.0
PHP Version:
4
Tags:
Complexity:
Is Regression:
Sprint Focus:

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)


Files

userfunc.php (583 Bytes) userfunc.php Administrator Admin, 2008-05-12 15:25
cachegrind.out.5788.bz2 (5.63 KB) cachegrind.out.5788.bz2 Administrator Admin, 2008-05-12 15:53
KCacheGrind_report.png (17.9 KB) KCacheGrind_report.png Administrator Admin, 2008-05-12 17:02
Actions

Also available in: Atom PDF