Step one of optimizations for StrCaseCmp:
authorMartin Pool <mbp@samba.org>
Tue, 18 Mar 2003 07:31:49 +0000 (07:31 +0000)
committerMartin Pool <mbp@samba.org>
Tue, 18 Mar 2003 07:31:49 +0000 (07:31 +0000)
commit743d429d9b425aa84d89bd65c08beb06374026c8
treeb61f53d922f5283abea4ce12bbb6dcc456702cb3
parent6b2fb1e2fe23816cb21fda9424e6eb1d2537794d
Step one of optimizations for StrCaseCmp:

First of all, do a char-by-char walk through both buffers until we get
to a non-ascii character, or a difference between the strings.  This
prefix can be directly compared without needing to call into iconv.
This should be much faster for strings that are either all ascii, or
differ near the start.
(This used to be commit f7f692b2db4dd513068d6d8fed2792186933ddda)
source3/lib/util_str.c