Project

General

Profile

Actions

Feature #20562

closed

Speed up xml2array by adding a two level cache

Added by Fabrizio Branca over 15 years ago. Updated over 14 years ago.

Status:
Closed
Priority:
Should have
Category:
Caching
Target version:
-
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

xml2array.patch (2.44 KB) xml2array.patch Administrator Admin, 2009-06-03 14:15
11260.patch (2.39 KB) 11260.patch Administrator Admin, 2009-06-03 16:43
11260_final.diff (2.38 KB) 11260_final.diff Administrator Admin, 2009-06-04 19:15

Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #21181: Call to getCache() on a non-objectClosedRupert Germann2009-10-03

Actions
Actions

Also available in: Atom PDF