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

Re: export, checkout, commit performance

From: Peter N. Lundblad <peter_at_famlundblad.se>
Date: 2006-03-18 12:55:59 CET

Ivan Zhakov writes:
> On 3/13/06, Peter N. Lundblad <peter@famlundblad.se> wrote:
> > Ivan Zhakov writes:
> > > On 3/13/06, Peter N. Lundblad <peter@famlundblad.se> wrote:
> > > > Maybe it is a
> > > > good idea to get rid of the read_all parameter of the
> > > > svn_stream_content_same function and instead create a new stream that
> > > > will "drain" its underlying stream when it is being closed. Thoughts?
> > > Yeah, I had similiar idea recently. But in this case we need extra
> > > allocations of read buffer. I don't know how it decrease performance.
> >
> > Keep a flag whether the end of stream was reached. On close, if EOS
> > wasn't reached, just allocate a buffer and drain the stream. So you
> > only need the buffer if the reading was stopped early.
> >
> Or might be add this flag to svn_stream_checksummed() ?

I added this capability to svn_stream_checksummed mostly because I don't see who else would need to.

> I will be busy in near time therefore I cannot fix it.
>

r18944. Please have a look if you have time. The last thing here is
to transfer the md5 of the new text base from transmit_text_deltas to
the post commit processing. Working on that now.

Thank you for working in this area,
//Peter

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sat Mar 18 12:56:21 2006

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.