From: Noam Postavsky <npostavs@users.sourceforge.net>
To: Eli Zaretskii <eliz@gnu.org>
Cc: Robert Weiner <rswgnu@gmail.com>,
Emacs developers <emacs-devel@gnu.org>,
sven.axelsson@gmail.com,
Stefan Monnier <monnier@iro.umontreal.ca>
Subject: Re: git replace --edit for updating commit messages (was: Is it time to drop ChangeLogs?)
Date: Sat, 30 Jul 2016 19:18:18 -0400 [thread overview]
Message-ID: <CAM-tV--68P+CzSYSukUeDZgsGd=Amab1WXjVMfiZAy1e4uJ6Pw@mail.gmail.com> (raw)
In-Reply-To: <83y44lrfff.fsf@gnu.org>
[-- Attachment #1: Type: text/plain, Size: 681 bytes --]
On Thu, Jul 28, 2016 at 10:43 AM, Eli Zaretskii <eliz@gnu.org> wrote:
>
> Thanks. But I think a more relevant timing would be one for something
> like 1% to 10% of replaced messages, because we will never have all of
> them replaced.
I made a script to collect some more timings at different replacement
levels. Script and timings attached. The time needed grows linearly
per number of replacements. Looking at the time for git log | head
(which I believe is representative of the how long it takes to get
something onscreen from a normal git log with pager), I'd say it's
big enough to be annoying (10th of a second) starting from around 4000
replacements (that's roughly 3%).
[-- Attachment #2: full-log-times.txt --]
[-- Type: text/plain, Size: 1155 bytes --]
# real user sys
0 4.41 2.85 1.53
1000 4.76 2.96 1.76
2000 5.43 3.15 2.24
3000 6.11 3.31 2.76
4000 7.28 3.52 3.73
5000 8.33 3.57 4.73
6000 9.60 3.62 5.94
7000 11.25 3.86 7.35
8000 12.27 3.86 8.36
9000 13.07 4.02 8.98
10000 13.65 4.20 9.40
11000 14.11 4.37 9.69
12000 14.04 4.14 9.85
13000 14.28 4.28 9.95
14000 14.51 4.23 10.23
15000 15.22 4.26 10.90
16000 15.46 4.31 11.08
17000 16.12 4.30 11.74
18000 16.89 4.59 12.25
19000 17.39 4.66 12.68
20000 18.41 4.69 13.65
21000 18.96 4.70 14.20
22000 19.67 4.99 14.62
23000 20.29 4.92 15.31
24000 20.81 5.06 15.67
25000 21.68 5.20 16.38
26000 22.17 5.17 16.93
27000 22.71 5.56 17.05
28000 23.69 5.43 18.19
29000 24.22 5.54 18.56
30000 24.82 5.51 19.21
31000 25.47 5.70 19.68
32000 26.21 5.82 20.28
33000 26.50 5.53 20.88
34000 27.17 5.76 21.31
35000 27.66 5.96 21.62
36000 28.33 6.09 22.16
37000 29.13 5.71 23.32
38000 30.10 6.43 23.57
39000 30.32 6.10 24.13
40000 30.97 6.16 24.68
41000 31.65 6.27 25.27
42000 32.36 6.46 25.78
43000 32.91 6.57 26.24
44000 33.59 6.50 26.95
45000 34.30 6.65 27.51
46000 34.92 6.73 28.07
47000 35.52 6.65 28.75
48000 36.12 6.90 29.08
49000 36.75 7.37 29.25
50000 37.42 6.96 30.33
[-- Attachment #3: git-replace-some.sh --]
[-- Type: application/x-sh, Size: 631 bytes --]
[-- Attachment #4: log-times.txt --]
[-- Type: text/plain, Size: 1074 bytes --]
# real user sys
0 0.00 0.00 0.00
1000 0.01 0.00 0.01
2000 0.04 0.02 0.02
3000 0.06 0.03 0.03
4000 0.10 0.05 0.05
5000 0.15 0.04 0.10
6000 0.19 0.08 0.10
7000 0.25 0.06 0.17
8000 0.30 0.11 0.17
9000 0.34 0.12 0.19
10000 0.35 0.11 0.22
11000 0.36 0.16 0.19
12000 0.37 0.14 0.21
13000 0.37 0.13 0.22
14000 0.39 0.13 0.24
15000 0.44 0.19 0.22
16000 0.46 0.17 0.24
17000 0.48 0.20 0.26
18000 0.50 0.22 0.24
19000 0.54 0.18 0.33
20000 0.58 0.22 0.33
21000 0.60 0.25 0.30
22000 0.63 0.22 0.37
23000 0.66 0.25 0.38
24000 0.70 0.27 0.37
25000 0.78 0.24 0.43
26000 0.78 0.27 0.43
27000 0.76 0.25 0.48
28000 0.85 0.31 0.46
29000 0.94 0.34 0.45
30000 0.93 0.31 0.52
31000 0.90 0.36 0.48
32000 1.01 0.32 0.55
33000 1.03 0.39 0.52
34000 0.97 0.40 0.53
35000 1.00 0.37 0.57
36000 1.02 0.41 0.57
37000 1.06 0.45 0.55
38000 1.07 0.43 0.59
39000 1.12 0.42 0.63
40000 1.14 0.45 0.61
41000 1.14 0.38 0.70
42000 1.21 0.53 0.62
43000 1.20 0.45 0.68
44000 1.26 0.45 0.73
45000 1.26 0.47 0.72
46000 1.30 0.55 0.67
47000 1.34 0.57 0.69
48000 1.34 0.53 0.73
49000 1.41 0.56 0.78
50000 1.43 0.59 0.76
prev parent reply other threads:[~2016-07-30 23:18 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-07-28 1:35 git replace --edit for updating commit messages (was: Is it time to drop ChangeLogs?) Noam Postavsky
2016-07-28 8:07 ` git replace --edit for updating commit messages Andreas Schwab
2016-08-02 23:37 ` John Wiegley
2016-08-03 6:49 ` Andreas Schwab
2016-07-28 14:43 ` git replace --edit for updating commit messages (was: Is it time to drop ChangeLogs?) Eli Zaretskii
2016-07-30 23:18 ` Noam Postavsky [this message]
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='CAM-tV--68P+CzSYSukUeDZgsGd=Amab1WXjVMfiZAy1e4uJ6Pw@mail.gmail.com' \
--to=npostavs@users.sourceforge.net \
--cc=eliz@gnu.org \
--cc=emacs-devel@gnu.org \
--cc=monnier@iro.umontreal.ca \
--cc=rswgnu@gmail.com \
--cc=sven.axelsson@gmail.com \
/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.