On 09/14/2014 11:34 PM, Peter Geoghegan wrote:
> On Sun, Sep 14, 2014 at 7:37 AM, Heikki Linnakangas
> <hlinnakangas@vmware.com> wrote:
>> Both values vary in range 5.9 - 6.1 s, so it's fair to say that the useless
>> memcmp() is free with these parameters.
>>
>> Is this the worst case scenario?
>
> Other than pushing the differences much much later in the strings
> (which you surely thought of already), yes.
Please test the absolute worst case scenario you can think of. As I said
earlier, if you can demonstrate that the slowdown of that is acceptable,
we don't even need to discuss how likely or realistic the case is.
- Heikki