httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject DO NOT REPLY [Bug 50920] using word wise comparison to improve string comparison
Date Sun, 13 Mar 2011 08:50:06 GMT

--- Comment #4 from Nick Kew <> 2011-03-13 04:50:02 EDT ---
(In reply to comment #2)
> the trailing blank length is 20, the version I suggested only takes about HALF
> the time the original version takes.

Can't see a trailing blanks example in there.

Your first example, leading zeros, is typical: the likelihood of there being
any, let alone many, is low.  If we were expecting to skip 20 leading zeros,
maybe we'd have used strspn.

If you want to make a case for a patch, I'd suggest all of:
(a) A usage case where there's a likelihood of long strings in real life.
(b) A macro that doesn't detract from readability.
(c) Address portability issues like sizeof and endianness.

Configure bugmail:
------- You are receiving this mail because: -------
You are the assignee for the bug.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message