Replacing QRegExp with CMake RegularExpression

Andreas Pakulat apaku at gmx.de
Sun Nov 2 01:59:06 UTC 2008


Hi,

so I thought it might be interesting to try this out. Turned out to be a
bit more complex than I initially thought and unfortunately it also
introduces one regression with the kde4addunittest test. (I'm seeing an
error message from RegularExpression about nested "*?+", so that might be a
hint).

Having done a quick time kdevelop like test the startup speed of kdevelop
including loading of kdevplatform was reduced frmo 15 to 11 seconds on my
old machine. 

The patch is attached for anyone to look at, whats a bit scary is the
conversion between QString and char* for the RegularExpression class. I'm
actually thinking about seeing wether converting to QChar helps with that
or wether using that class drains performance again.

Andreas

-- 
You have the power to influence all with whom you come in contact.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: regex_cmake.diff
Type: text/x-diff
Size: 62108 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kdevelop-devel/attachments/20081102/3a3dfb70/attachment.bin>


More information about the KDevelop-devel mailing list