Project

General

Profile

Actions

Feature #20562

closed

Speed up xml2array by adding a two level cache

Added by Fabrizio Branca almost 15 years ago. Updated over 13 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 #1

Updated by Fabrizio Branca almost 15 years ago

New patch. Serialize and Unserialize is not necessary because the variable frontend does this by itself...

Actions #2

Updated by Rupert Germann almost 15 years ago

Committed to trunk rev. 5544
final patch attached.

Actions

Also available in: Atom PDF