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

Re: Something I noticed when looking at update performance with char_is_uri_safe

From: <cmpilato_at_collab.net>
Date: 2002-11-26 20:30:19 CET

Greg Hudson <ghudson@MIT.EDU> writes:

> On Tue, 2002-11-26 at 10:56, Michael Price wrote:
> > So given that your three heavy hitters are the first three characters in
> > the string, I'd say that replacing it with a couple of if statements won't
> > give you much of an improvement at all.
>
> But char_is_uri_safe could be made a macro using a character table.

Indeed! In fact, the filesystem skel stuff uses such a table for
determining the skel-safety-ness of characters in skel data.

  static const enum char_type skel_char_type[256] = ...

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Tue Nov 26 20:33:05 2002

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

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