[TYPO3-project-4-3] XML parsing in EM

Steffen Kamper info at sk-typo3.de
Mon May 4 22:12:55 CEST 2009


Hi Marcus,

Marcus Krause schrieb:
> Steffen Kamper schrieb am 05/04/2009 10:40 AM Uhr:
>> Steffen Kamper schrieb:
>>> i experimented with the XMLReader and as it's a pull parser it doesn't
>>> need too much memory. But i don't have a patch right now, maybe for
>>> the devdays.
>>>
>>> vg Steffen
>> IIRC the main problem was that the extensions.xml is gzipped. For stream
>> parsing it would be better to have unzipped xml even if there are more
>> data transport over the net, but it needs less memory.
> 
> Why do you see a problem there?
> 
> You could have an un-zipped extensions.xml file; just unpack it locally.
> 
> There's no need to parse a gzipped file or to parse a remote file!
> 

this is exactly what costs a lot of memory and time: download the gz and 
unpacking it locally. IIRC unpacking is done in memory too and saving 
this to disc.
Having an unpacked remote xml would allow to open a stream and parse the 
stream which needs less memory and saves local disk space.

vg Steffen


More information about the TYPO3-project-4-3 mailing list