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

Re: Performance improvement suggestion when comparing revisions of a large file

From: Stefan Küng <tortoisesvn_at_gmail.com>
Date: Tue, 20 Sep 2016 21:31:09 +0200

On 20.09.2016 14:09, Martin Fuller wrote:
> On 15 September 2016 at 17:48, Stefan Küng <tortoisesvn_at_gmail.com
> <mailto:tortoisesvn_at_gmail.com>> wrote:
>>
>> On 15.09.2016 12:19, Martin Fuller wrote:
>> > On 14 September 2016 at 21:11, Stefan Küng <tortoisesvn_at_gmail.com
> <mailto:tortoisesvn_at_gmail.com>
>> > <mailto:tortoisesvn_at_gmail.com <mailto:tortoisesvn_at_gmail.com>>> wrote:
>> >>
>> >> On 14.09.2016 21:14, Martin Fuller wrote:
>> >> > I work with a few large text files in SVN, say 50MB, and our
> server is
>> >> > not on a LAN. When I use "SVN Show Log" on a large file and then
>> >> > "Compare revisions" Tortoise downloads 2 full copies of the file,
> which
>> >> > takes 80 seconds The actual diff may take 5 seconds if not much
>> >> > changed. It would be much quicker if it downloaded diffs instead.
>> >> > "Show changes" also downloads 2 full copies of the file.
>> >> >
>> >> > [...]
>> >>
>> >> Use the "Show changes as unified diff" feature - that will only fetch
>> >> the diff.
>> >
>> > "Show changes as unified diff" also downloads 50MB (one full file). The
>> > diffs themselves were less than 100KB.
>>
>> Then you have to update the server: newer servers only send the diff.
>>
>> > I would like to use "Compare revisions" because it gives more context.
>>
>> Well yes, it gives more context because it has both full files. And to
>> get that, they have to be downloaded.
>>
>
> A few of the commands manage to use diffs to quickly produce the whole
> file. Please can more of them do it?
>
> "Compare with working copy" and "Update item to revision" are quick
> (revision).

These transfer only diffs over the network.

> "Save revision to..." is quick when clicking on a revision but slow when
> clicking on a file.

Both transfer the whole file(s), but on a revision the dialog comes up
fast because it only has to fetch a few bytes to get the info - the
download depends on the network.

> "Compare with previous revision" and "Compare revisions" are slow (1 or
> 2 revisions).
> "Show changes" is slow (file).

These require heavy network access.

> "Show changes as unified diff" is quick when clicking on 1 or 2
> revisions (top panel) but slow when clicking on a file (bottom panel).

unified diff for revisions is fast because there's only one diff done.
On the bottom panes, a diff is requested for every file separately and
then merged together by TSVN.

Stefan

-- 
        ___
   oo  // \\      "De Chelonian Mobile"
  (_,\/ \_/ \     TortoiseSVN
    \ \_/_\_/>    The coolest interface to (Sub)version control
    /_/   \_\     http://tortoisesvn.net
------------------------------------------------------
http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=4061&dsMessageId=3186486
To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_tortoisesvn.tigris.org].
Received on 2016-09-20 21:31:22 CEST

This is an archived mail posted to the TortoiseSVN Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.