Re: how to speed up "git log"?

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Bruno Haible
Date: Sunday, February 11, 2007 - 7:02 pm

Thanks for the responses.

Robin Rosenberg wrote:

Thanks, that indeed does the trick: it reduces the time from 33 sec to 11 sec.

To reduce the time even more, and to allow more flexibility among the
search criteria (e.g. "I need the commits from date X to date Y, on this
file set, from anyone except me"), I would need to connect git to a database.
git cannot store all kinds of indices and reverse mappings to allow all
kinds of queries; that's really a classical database application area.


Actually, no. Brown paper bag on me for doing benches in different
conditions. The timing difference is an effect of the buffer cache / page
cache:

  - After the second repetition of the command (i.e. when all files are cached
    in RAM), the timings are
        25 seconds real time, 24 seconds of CPU time (13 user, 11 system)
    both in git-1.4.4 and -1.5.0-rc4.

  - After unmounting and remounting the disk containing the repository (i.e.
    when none of the files are cached in RAM), the timings are
        49 seconds real time, 38 seconds of CPU time (20 user, 18 system)

Sorry for the false alarm.

Bruno

-
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:
how to speed up "git log"?, Bruno Haible, (Sun Feb 11, 4:52 am)
Re: how to speed up "git log"?, Johannes Schindelin, (Sun Feb 11, 9:49 am)
Re: how to speed up "git log"?, Shawn O. Pearce, (Sun Feb 11, 4:00 pm)
Re: how to speed up "git log"?, Johannes Schindelin, (Sun Feb 11, 4:08 pm)
Re: how to speed up "git log"?, Bruno Haible, (Sun Feb 11, 4:41 pm)
Re: how to speed up "git log"?, Shawn O. Pearce, (Sun Feb 11, 4:46 pm)
Re: how to speed up "git log"?, Johannes Schindelin, (Sun Feb 11, 4:56 pm)
Re: how to speed up "git log"?, Robin Rosenberg, (Sun Feb 11, 4:59 pm)
Re: how to speed up "git log"?, Bruno Haible, (Sun Feb 11, 7:02 pm)
Re: how to speed up "git log"?, Junio C Hamano, (Sun Feb 11, 9:08 pm)
Re: how to speed up "git log"?, Linus Torvalds, (Sun Feb 11, 9:20 pm)
Re: how to speed up "git log"?, Shawn O. Pearce, (Sun Feb 11, 11:06 pm)
Re: how to speed up "git log"?, Junio C Hamano, (Sun Feb 11, 11:11 pm)
Re: how to speed up "git log"?, Shawn O. Pearce, (Sun Feb 11, 11:22 pm)
Re: how to speed up "git log"?, Shawn O. Pearce, (Sun Feb 11, 11:28 pm)
Re: how to speed up "git log"?, Johannes Schindelin, (Mon Feb 12, 4:19 am)
Re: how to speed up "git log"?, Bruno Haible, (Mon Feb 12, 4:27 am)