|
From: Oswald B. <os...@kd...> - 2007-08-28 07:35:04
|
On Tue, Aug 28, 2007 at 07:05:22AM +0100, sv...@va... wrote:
> Author: sewardj
> +static Bool is_helperc_value_checkN_fail ( HChar* name )
> +{
> + return
> + 0==VG_(strcmp)(name, "MC_(helperc_value_check0_fail)")
> + || 0==VG_(strcmp)(name, "MC_(helperc_value_check1_fail)")
> + || 0==VG_(strcmp)(name, "MC_(helperc_value_check4_fail)")
> + || 0==VG_(strcmp)(name, "MC_(helperc_value_check8_fail)");
> +}
>
this looks incredibly slow to me, at least when partial matches are
expected to occur from time to time. how about using the address of a
globally stored instance of each string as a key? or just the address of
the function itself?
--
Hi! I'm a .signature virus! Copy me into your ~/.signature, please!
--
Chaos, panic, and disorder - my work here is done.
|