[TYPO3-core] RFC: #9283: declare marker handling functions of t3lib_parsehtml static

Dmitry Dulepov [typo3] dmitry at typo3.org
Thu Sep 4 08:15:22 CEST 2008


Hi!

Ingo Renner wrote:
> Problem:
> 1) The marker handling functions in t3lib_parsehtml are often called 
> staticaly although there're not declared static (even is the case within 
> t3lib_parsehtml itself).
> According to http://ilia.ws/files/ez_performance.pdf [^] this results in 
> a drop of performance, other than that it produces notices or warnings 
> and it is not good in general of course.
> 
> 2) There's an inconsistency: although a method substituteMarkerArray() 
> exists, there's no substituteSubpartArray()
> 
> 
> Solution:
> 1) Declare those methods static
> 2) introduce the missing method substituteSubpartArray()

Profiling results attached. There is a small performance increase, though it is really small.

-- 
Dmitry Dulepov
TYPO3 Core team
My TYPO3 book: http://www.packtpub.com/typo3-extension-development/book
In the blog: http://typo3bloke.net/pages/book-reviews/presentation-zen-by-garr-reynolds/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.netfielders.de/pipermail/typo3-team-core/attachments/20080904/373e0d29/attachment-0001.htm 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: profiling_static.png
Type: image/png
Size: 85131 bytes
Desc: not available
Url : http://lists.netfielders.de/pipermail/typo3-team-core/attachments/20080904/373e0d29/attachment-0001.png 


More information about the TYPO3-team-core mailing list