Cancelling network operations

Stefan Küng tortoisesvn at gmail.com
Thu Apr 22 14:48:38 EDT 2010


On 22.04.2010 19:33, Joe Orton wrote:
> On Thu, Apr 22, 2010 at 06:33:21PM +0200, Bert Huijben wrote:
>> The only problem with that is that Subversion handles this the other
>> way around:
>>
>> It calls into a user provided function that then checks for conditions
>> on when it should cancel. (See my original proposal)
>
> Oh, ick.  Calling up through N layers of callbacks for every single I/O
> call, just to do a variable comparison?  I wouldn't be surprised if that
> will hurt performance, I'm not sure I like this.  I guess we'll have to
> try it to find out.  Is there no other way to make this work?

I don't think there's another way that works with svn and UI clients 
well enough.
But going through the callbacks isn't expensive, because those callbacks 
are very small.

Stefan

-- 
        ___
   oo  // \\      "De Chelonian Mobile"
  (_,\/ \_/ \     TortoiseSVN
    \ \_/_\_/>    The coolest Interface to (Sub)Version Control
    /_/   \_\     http://tortoisesvn.net



More information about the neon mailing list