]> git.ipfire.org Git - thirdparty/valgrind.git/commit
Improve suppression matching performance when fun or obj is a simple string
authorPhilippe Waroquiers <philippe.waroquiers@skynet.be>
Thu, 26 Jul 2012 21:37:36 +0000 (21:37 +0000)
committerPhilippe Waroquiers <philippe.waroquiers@skynet.be>
Thu, 26 Jul 2012 21:37:36 +0000 (21:37 +0000)
commit90fa3850066ca739be3817d8b06e38eb7c3ec7bf
tree721e611c09cc0a96cad419228303f9dfce171872
parente9a1dc1962f69562e166a063190e3033eb7a18d0
Improve suppression matching performance when fun or obj is a simple string
Idea is from Julian, possible bugs are mine.

If the fun or obj is a simple string and not a patter (so no *, no ?),
use a simple string comparison rather than a call to a wildcard matching.

On a leak search with a lot of reachable loss records and a lot of suppr,
it improves the speed of the leak search by 10 to 15%.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12789
coregrind/m_errormgr.c