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

Re: Maintaining NodeID sanity

From: Karl Fogel <kfogel_at_newton.ch.collab.net>
Date: 2002-05-10 22:07:31 CEST

cmpilato@collab.net writes:
> Seriously, who cares? With the exception of the revisions, these
> things are never anything bat const char * values, so they can be whatever
> we want (as long as we can definitively answer the is-greater-than
> question). Whatever, I'm not personally sold on either way.

I care a bit -- I'd prefer base64, for two reasons:

   - Integers imply ordering. But we're not comparing these keys for
     ordering (there's one rare circumstance where we could do so with
     copyIDs, but we may not even use it). We're using them as unique
     keys, period. To use integers would be misdocumenting.

   - As a developer debugging the code, it's easier for me to
     recognize and remember shorter strings in an alphabet with more
     symbols, than longer strings in an alphabet with fewer symbols.
     Long strings of numbers start to look all alike pretty quickly
     (at least to me).

I also feel more comfortable knowing that the length grows so much
more slowly, but I think that's probably just superstition.
Nonetheless, it can't *hurt*, right :-)?

-K

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Fri May 10 22:07:59 2002

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