summaryrefslogtreecommitdiff
path: root/source3/python/py_ntsec.c
diff options
context:
space:
mode:
authorMartin Pool <mbp@samba.org>2003-03-18 07:31:49 +0000
committerMartin Pool <mbp@samba.org>2003-03-18 07:31:49 +0000
commit743d429d9b425aa84d89bd65c08beb06374026c8 (patch)
treeb61f53d922f5283abea4ce12bbb6dcc456702cb3 /source3/python/py_ntsec.c
parent6b2fb1e2fe23816cb21fda9424e6eb1d2537794d (diff)
downloadsamba-743d429d9b425aa84d89bd65c08beb06374026c8.tar.gz
samba-743d429d9b425aa84d89bd65c08beb06374026c8.tar.bz2
samba-743d429d9b425aa84d89bd65c08beb06374026c8.zip
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)
Diffstat (limited to 'source3/python/py_ntsec.c')
0 files changed, 0 insertions, 0 deletions