r2578: Pick up optimisation from Samba4 - thanks tridge !
authorJeremy Allison <jra@samba.org>
Fri, 24 Sep 2004 01:32:19 +0000 (01:32 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 15:52:47 +0000 (10:52 -0500)
commit0465e2d23d27e535bad4652037b37041049bfa96
tree2463d58dea7739b58dae4de0752ab707ac4f0ab1
parentfc51c97ea86bd1a86830d4ab2c6c7c4ec9fccc88
r2578: Pick up optimisation from Samba4 - thanks tridge !
- I recently found out that charaters below 0x3F are guaranteed not to
  occur as secondary bytes in any multi-byte character set. This
  allows for a very simple optimisation in strchr_m() and
  strrchr_m(). It might be a good idea to pick this up for Samba3.
Jeremy.
source/lib/util_str.c