Re: faster fnmatch

2009-04-18 Thread Bruno Haible
Ondrej Bilka wrote: > I looked more into source and discovered fnmatch doesn't work as I imagined. > By default it converts strings into widechars and match there. > utf8 allows searching be done bitwise. Its in most cases faster. fnmatch converts to wide characters because it often makes several

Re: faster fnmatch

2009-04-18 Thread Ondrej Bilka
On Fri, Apr 17, 2009 at 01:02:57PM +0200, Bruno Haible wrote: > Hello Ondrej, > > > > Hello. I am writing partial fnmatch to speed up locate et al. > > Cool! We know for some time already that this is a bottleneck [1]. > I find it also interesting that you go for a two-step approach, > preprocess