From: David Kastrup <dak@gnu.org>
To: Dmitry Gutov <dgutov@yandex.ru>
Cc: bruce.connor.am@gmail.com, emacs-devel <emacs-devel@gnu.org>
Subject: Re: On tabs and spaces
Date: Thu, 15 Jan 2015 11:26:10 +0100 [thread overview]
Message-ID: <871tmwfigt.fsf@fencepost.gnu.org> (raw)
In-Reply-To: <54B793B0.8070909@yandex.ru> (Dmitry Gutov's message of "Thu, 15 Jan 2015 13:17:20 +0300")
Dmitry Gutov <dgutov@yandex.ru> writes:
> On 01/15/2015 12:57 PM, David Kastrup wrote:
>
>> git blame does not spend that much of its time diffing. Even if the
>> difference between plain and -w has become larger with Git 2.1+ (simply
>> because it wastes vastly less time with other endeavors), the bulk of
>> the run time is likely spent in unpacking files from the repository
>> rather than comparing them.
>
> Would you consider this kind of difference of no consequence?
>
> $ time git blame src/xdisp.c >/dev/null
>
> real 0m11.875s
> user 0m10.753s
> sys 0m0.583s
> $ time git blame -w src/xdisp.c >/dev/null
>
> real 0m17.127s
> user 0m16.779s
> sys 0m0.356s
Once you factor the time of C-x v g into the equation, the 5.5s of
difference are not all that impressive. On my computer, previous to
version 2.1 we were talking about about 5 _minutes_ of runtime.
> But anyway, I distinctly remember the performance of blaming being one
> of the reasons why we shouldn't do whitespace-cleaning across the
> repository.
I don't think it was as much the performance rather than the
_convenience_ or knowledge. Most people call git blame without -w at
first, and sometimes they don't even know about the option. Emacs
doesn't use -w by default when doing C-x v g either IIRC. Getting it in
there is somewhat cumbersome.
--
David Kastrup
next prev parent reply other threads:[~2015-01-15 10:26 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-01-14 23:15 On tabs and spaces Artur Malabarba
2015-01-14 23:22 ` Dmitry Gutov
2015-01-15 1:01 ` Artur Malabarba
2015-01-15 9:57 ` David Kastrup
2015-01-15 10:17 ` Dmitry Gutov
2015-01-15 10:26 ` David Kastrup [this message]
2015-01-15 10:43 ` Dmitry Gutov
2015-01-15 11:42 ` David Kastrup
2015-01-16 7:23 ` Stephen Leake
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=871tmwfigt.fsf@fencepost.gnu.org \
--to=dak@gnu.org \
--cc=bruce.connor.am@gmail.com \
--cc=dgutov@yandex.ru \
--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.