From: "Marco Costalba" <mcostalba@gmail.com>
To: "Git Mailing List" <git@vger.kernel.org>
Subject: git-log: --topo-order speed-ups the thing !?
Date: Tue, 17 Jul 2007 21:13:17 +0200 [thread overview]
Message-ID: <e5bfff550707171213m5969e436yf4db83c44a1c8c42@mail.gmail.com> (raw)
Testing with git log performance on Linux tree I found this
interesting and unexpected result:
$ time git log --parents --boundary --pretty=raw -z --log-size
--topo-order HEAD > /dev/null
6.85user 0.20system 0:07.05elapsed 100%CPU (0avgtext+0avgdata 0maxresident)k
0inputs+0outputs (0major+21142minor)pagefaults 0swaps
$ time git log --parents --boundary --pretty=raw -z --log-size HEAD > /dev/null
7.01user 0.09system 0:07.10elapsed 100%CPU (0avgtext+0avgdata 0maxresident)k
0inputs+0outputs (0major+11128minor)pagefaults 0swaps
Although page faults are more or less the half, execution time is
faster _with_ --topo-order option.
Someone could explain why?
Thanks
Marco
reply other threads:[~2007-07-17 19:13 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=e5bfff550707171213m5969e436yf4db83c44a1c8c42@mail.gmail.com \
--to=mcostalba@gmail.com \
--cc=git@vger.kernel.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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).