git-log: --topo-order speed-ups the thing !?

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Git Mailing List <git@...>
Date: Tuesday, July 17, 2007 - 3:13 pm

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
-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
git-log: --topo-order speed-ups the thing !?, Marco Costalba, (Tue Jul 17, 3:13 pm)