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

Re: svn commit: rev 2112 - trunk/subversion/libsvn_repos

From: Karl Fogel <kfogel_at_newton.ch.collab.net>
Date: 2002-06-07 22:04:34 CEST

Ben Collins-Sussman <sussman@collab.net> writes:
> Just a sanity check here, correct me if I'm wrong. The rule we're
> following is, "if you know the length, use it. otherwise, use
> APR_HASH_KEY_STRING." Is that right? I mean, the constant is just
> running strlen, right?

Not quite. The reason to prefer the constant is that it tells the
hash function "This is a null-terminated string, so compute the key
length *while* you compute its hash value." So it only runs over the
bytes once, instead of twice.

To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Fri Jun 7 22:09:29 2002

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