[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: [TSVN] suggestion about 'Icon Overlays'

From: C.A.T.Magic <c.a.t.magic_at_gmx.at>
Date: 2004-07-15 22:15:35 CEST

SteveKing wrote:

> C.A.T.Magic wrote:
>
> [snip]
> Do you even know how expensive a regexp comparison is? You couldn't use
> the explorer anymore because it would constantly use 100% CPU!

http://research.microsoft.com/projects/greta/regex_perf.html

about 1E-6 seconds. so this shouldn't be much of a problem :-)
in some cases a regexp can even be faster than a "strcmp",
because it can e.g. just check the first and last character
instead of visiting every byte of the string.
the svn:ignore patterns are also 'tiny' regexps
(so this will be about 10 regexps _per_file_ in a folder)

but i agree, for most ppl a regexp isn't of much use because
they don't know how to use them.
but please don't avoid a regexp just for speed reasons.

:-)
c.a.t.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tortoisesvn.tigris.org
For additional commands, e-mail: dev-help@tortoisesvn.tigris.org
Received on Thu Jul 15 23:20:31 2004

This is an archived mail posted to the TortoiseSVN Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.