[Qt-interest] QT/Windows 7 problem: Xml and QDomDocument class extremely slow

Roland Tollenaar rwatollenaar at gmail.com
Thu Dec 10 16:31:57 CET 2009


Hi Thiago,

Thanks for the response, the speed of the QDom classes is absolutely 
acceptable on XP. But definitely not on Windows 7.

There is a good reason we are using the QDom class and that is because 
we make heavy use of the shallow copy aspect of the QDomNode. I don't 
see this possibility presenting itself with the stream readers.

Is there an explanation (I am hoping "fix") for this huge performance 
loss on windows 7 machines?

Thanks again,

Roland




Thiago Macieira wrote:
> Em Quinta-feira 10 Dezembro 2009, às 09:55:51, Roland Tollenaar escreveu:
>> Hi,
>>
>> Perhaps this problem has already been reported but we are experiencing
>> extreme slowness on windows 7 machines whenever the xml class of QT is
>> used. What feels instantaneous under XP can take up to 10 seconds or
>> longer on a Windows 7 machine. Even when running in so called "XP mode".
>>
>> This is a severe problem for us, is this known and is there a solution
>> to this problem?
>>
>> We are working with Qt 4.5.2
> 
> The QDom* classes are known to be slow. There will be no optimisation done on 
> them.
> 
> Please use QXmlStreamReader and QXmlStreamWriter if you need performance in 
> parsing and writing XML.
> 
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest



More information about the Qt-interest-old mailing list