all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stephen Berman <stephen.berman@gmx.net>
To: emacs-devel@gnu.org
Subject: Re: vc-print-log vs. bzr log
Date: Sat, 15 Sep 2012 16:56:50 +0200	[thread overview]
Message-ID: <878vcbcp1p.fsf@rosalinde.fritz.box> (raw)
In-Reply-To: <m2wqzv1k6u.fsf@igel.home> (Andreas Schwab's message of "Sat, 15 Sep 2012 15:37:13 +0200")

On Sat, 15 Sep 2012 15:37:13 +0200 Andreas Schwab <schwab@linux-m68k.org> wrote:

> Stephen Berman <stephen.berman@gmx.net> writes:
>
>> When I'm visiting a file on a local branch of the Emacs bzr trunk and
>> type `M-! bzr log -r-1 RET' I see the log entry in less than one second.
>
> Try again passing the file name.  Does it make a difference?

Somewhat; see below.

On Sat, 15 Sep 2012 16:51:33 +0300 Eli Zaretskii <eliz@gnu.org> wrote:

>> From: Stephen Berman <stephen.berman@gmx.net>
>> Date: Sat, 15 Sep 2012 15:07:03 +0200
>> 
>> When I'm visiting a file on a local branch of the Emacs bzr trunk and
>> type `M-! bzr log -r-1 RET' I see the log entry in less than one second.
>> When I type `C-x v l RET RET' ±19 seconds elapse before the log is
>> displayed (and the lag time is the same if I limit the display to one
>> entry).  Is this time difference expected?
>
> Yes, to some degree, because these two commands do 2 different things.
> The first one shows the last commit in the branch.  The second one
> shows the commits only to the file you are visiting, which means
> digging deeper into the version history.

I understand that, but ±19 seconds vs <1 second?  Is that the best VC
can do?

> However, even if the file you are visiting is the one modified by the
> last revision, bzr is slower when a file argument is passed.  

I see this too, but it's still very much quicker than VC.  Here are some
timing tests, with emacs -Q:

From /data/steve/bzr/emacs/quickfixes/ typing `M-! time bzr log -r-1':

real	0m0.428s
user	0m0.305s
sys	0m0.053s

From outside of this branch typing `M-! time bzr log -r-1
/data/steve/bzr/emacs/quickfixes/':

real	0m0.484s
user	0m0.323s
sys	0m0.044s

From outside of this branch typing `M-! time bzr log -r-1
/data/steve/bzr/emacs/quickfixes/lisp/':

real	0m1.330s
user	0m0.957s
sys	0m0.106s

From outside of this branch typing `M-! time bzr log -r-1
/data/steve/bzr/emacs/quickfixes/lisp/gnus/:

real	0m0.760s
user	0m0.480s
sys	0m0.083s

From outside of this branch typing `M-! time bzr log -r-1
/data/steve/bzr/emacs/quickfixes/lisp/gnus/gnus-group.el' (where this
file is the one modified by the last revision on this branch):

real	0m0.612s
user	0m0.404s
sys	0m0.066s

From outside of this branch typing `M-! time bzr log -r-1
/data/steve/bzr/emacs/quickfixes/lisp/gnus/gnus-agent.el' (where this
file is not the one modified by the last revision on this branch):

real	0m0.557s
user	0m0.384s
sys	0m0.067s

>                                                               I guess
> this is something to report as a bug to bzr bug tracker.
>
> Btw, did you really mean "C-x v l RET RET", or did you mean something
> like "C-u C-x v l RET 1 RET"?

Yes, sorry, I mistakenly omitted the prefix argument (from my posting,
not from the command I typed in Emacs).

Steve Berman



  reply	other threads:[~2012-09-15 14:56 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-09-15 13:07 vc-print-log vs. bzr log Stephen Berman
2012-09-15 13:37 ` Andreas Schwab
2012-09-15 14:56   ` Stephen Berman [this message]
2012-09-15 15:45     ` Eli Zaretskii
2012-09-15 16:04       ` Stephen Berman
2012-09-15 16:28         ` Eli Zaretskii
2012-09-15 17:36           ` Stephen Berman
2012-09-15 17:56             ` Andreas Schwab
2012-09-15 19:36             ` Eli Zaretskii
2012-09-15 13:51 ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=878vcbcp1p.fsf@rosalinde.fritz.box \
    --to=stephen.berman@gmx.net \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.