[cmake-developers] slow regex implementation in RegularExpression
Alexandru Ciobanu
alex at rogue-research.com
Wed Nov 16 15:19:55 EST 2011
> The performance variation is interesting. It is probably worthwhile
> to use a profiling tool (such as valgrind --tool=callgrind and kcachegrind)
> to see where PCRE is spending its time.
99.8% of the time in spent in match() from libpcre which is called by pcre_exec().
Please find attached the screenshot I made in the profiler (Mac OS X).
> There are two other regexp implementations Qt has considered:
>
> - Boost::Regex. Discarded because Boost does not keep ABI
> compatibility, which is important for Qt (but I'd say it's not for
> CMake)
>
> - C++11. Not possible if support for old compilers is required.
>
> Alex, have you tried those two?
Pau, I looked briefly at Boost Xpressive, but I was discouraged when I saw that it depends on other Boost headers and libraries.
I haven't tried the C++11, but as you say, that option automatically disqualifies many systems with older compilers.
I am currently trying on making CMake work with TRE.
sincerely,
Alex Ciobanu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake-developers/attachments/20111116/2c528e94/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: profiler.screnshot.png
Type: image/png
Size: 299119 bytes
Desc: not available
URL: <http://public.kitware.com/pipermail/cmake-developers/attachments/20111116/2c528e94/attachment-0002.png>
More information about the cmake-developers
mailing list