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

Re: subversion _really_ slow

From: <kfogel_at_collab.net>
Date: 2005-02-17 05:41:31 CET

Greg Hudson <ghudson@MIT.EDU> writes:
> On Wed, 2005-02-16 at 17:05, kfogel@collab.net wrote:
> > > This is an interesting point. IMO the ideal solution would be to
> > > convince the APR people to fix their library, but if memory serves,
> > > the problem is from apr_generate_random_bytes() and only affects
> > > Subversion via the getuuid.c file. If you look at the source code,
> > > writing a custom replacement for apr_uuid_get() is trivially easy and
> > > you could probably improve the implementation.
>
> > Developers, would we want a patch as suggested by Pete Gonzalez above?
> > I'm inclined to say "yes", but would like others' thoughts.
>
> The right answer is for APR to rev apr_generate_random_bytes() to take a
> flag saying whether PRNG data is okay, and for apr_uuid_get() to say
> that PRNG data is okay. (If the system has no /dev/random, the flag
> shouldn't have any effect, in my opinion.) I don't see any reason to
> address this problem within the Subversion code base, since I think it
> wouldn't be as easy.

I think you're right in the long run. But the best strategy is
probably:

   * Try to get the new api into APR, which we may be able to do
     without too much trouble.

   * In the meantime, add some substitute functionality to Subversion,
     to use if that new APR symbol isn't defined. That way we
     wouldn't require a bleeding edge APR to have this bug fixed right
     now, but we wouldn't have to forever keep code in Subversion that
     really belongs in APR.

I don't right now have time to *actually* do these things, but if we
are okay with this strategy, I could formally propose the APIs and
describe the implementations and at least (sigh) file an issue so we
don't forget.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Thu Feb 17 05:57:30 2005

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.