thoughts on replacing qtools with stl ?

Adrian M Negreanu <[email protected]> Wed, 16 Jan 2013 15:09:02 +0200
Newsgroups gmane.text.doxygen.devel
Message-ID <CAGV5d_006-4S6Na+gbOg7-_8raQfVM0xNkQcpkAhoSn3jQ=C=A@mail.gmail.com>
Hi,

I discovered QList to be pretty slow compared to std::list.
I did the test in a rough way by just iterating g_inputFiles in
doxygen.cpp:parseFiles().
Ofc, after the call site of parseFiles() I exited doxygen thus no
documentation was generated.

The times obtained were 29seconds using StringList vs. 2seconds using
std::list<QCString>.
The sources on which I ran doxygen consisted of
libva/libdrm/mesa-library which amounts to
a few thousands of files.

Now, considering that QList is used in other places, is it sane to
also use std::list instead of QList ?

thanks

------------------------------------------------------------------------------
Master Java SE, Java EE, Eclipse, Spring, Hibernate, JavaScript, jQuery
and much more. Keep your Java skills current with LearnJavaNow -
200+ hours of step-by-step video tutorials by Java experts.
SALE $49.99 this month only -- learn more at:
http://p.sf.net/sfu/learnmore_122612