Actions
Feature #20562
closedSpeed up xml2array by adding a two level cache
Start date:
2009-06-03
Due date:
% Done:
0%
Estimated time:
PHP Version:
5.2
Tags:
Complexity:
Sprint Focus:
Description
When profiling backend code (escpecially when there is templavoila involved) you'll notice that t3lib_div::xml2array() is one of the most "expensive" parts.
By introducing a cache this can by dramatically reduced (have a look at http://www.fabrizio-branca.de/fileadmin/statistics_xml2array.ods for some profiling statistics) in both backend and frontend.
I've implemented a first level cache (as a static variable) and a second level cache (using the new dbbackend), to prevent same xml string to be rendered more than once.
See patch
(issue imported from #M11260)
Files
Updated by Fabrizio Branca over 15 years ago
New patch. Serialize and Unserialize is not necessary because the variable frontend does this by itself...
Updated by Rupert Germann over 15 years ago
Committed to trunk rev. 5544
final patch attached.
Actions