[cfe-commits] [Patch] -Wduplicate-enum which fixes PR6343

Richard Trieu rtrieu at google.com
Thu Aug 30 13:34:08 PDT 2012


On Wed, Aug 29, 2012 at 5:48 PM, Ted Kremenek <kremenek at apple.com> wrote:

> On Aug 28, 2012, at 7:23 PM, Richard Trieu <rtrieu at google.com> wrote:
>
> If I read these numbers correctly, the hash table algorithm (with O(n)
>> performance) takes about 1.6-2% percent more than the control for runs 1-3,
>> and hardly anything noticeable for the clang code base.  Were runs 1-3 used
>> in your earlier measurements,
>>
> Yes, these are the same runs I have been using.  I earlier did some more
> runs with smaller files, but the improvements to this warning made the
> differences too small to detect, so they were dropped.
>
>
>> where the sorting-based approach took about ~4% longer (or is that not
>> the correct number)?
>>
> That is correct.  The fastest sorting-based reached 4% difference.
>
>
> Ok, sounds great.  The patch looks fantastic to me now, and the
> performance is good.  I'd be happy to see this go in.
>

Committed at revision 162938.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20120830/24ae63d4/attachment.html>


More information about the cfe-commits mailing list