git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: speeding up cg-log -u

From
Daniel Barkalow <barkalow@iabervon.org>
Date
May 15, 2005, 16:09 UTC
Message-ID
<Pine.LNX.4.21.0505151158300.30848-100000@iabervon.org>
In-Reply-To
<7vk6m212g7.fsf@assigned-by-dhcp.cox.net>
On Sat, 14 May 2005, Junio C Hamano wrote:
> Whenever I work with those "struct object" derivatives, I get
> very frustrated by the fact that they are designed to cater only
> to the need of very narrow immediate users. 

They aren't designed for the immediate users; they're implemented for the immediate users. Feel free to add more fields as you need them. The current selection is based on only adding things when there's a user for them.

Show 7 quoted lines
> The first round of tree objects did not even have names for each entry
> because the only thing it cared about was connectivity checking, and for
> that purpose callers would not care about what each blob or
> subtree was referred as.  Now when I want to use commit objects
> I find that it only records the commit date (other than
> connectivity information).  It really appears that connectivity
> is the primary thing and everything else is bolted on top.

Existance is the primary thing, and everything else was added as needed. (Pure connectivity is a bit special, because it's a property of generic objects so that fsck-cache doesn't need to know about particular types of objects unless there are particular things to check about them)

If you need more fields, let me know, and I'll figure out how to include them.

	-Daniel
*This .sig left intentionally blank*
Previous: Petr BaudisNext: Junio C Hamano
Message 9 of 14 in “speeding up cg-log -u”
  1. Zack BrownMay 14, 2005
  2. Junio C HamanoMay 14, 2005
  3. Add --author match to git-rev-list and git-rev-tree.Junio C Hamano, May 14, 2005
  4. Petr BaudisMay 14, 2005
  5. Petr BaudisMay 14, 2005
  6. Junio C HamanoMay 14, 2005
  7. Zack BrownMay 14, 2005
  8. Petr BaudisMay 14, 2005
  9. Daniel BarkalowMay 15, 2005
  10. Junio C HamanoMay 16, 2005
  11. Daniel BarkalowMay 16, 2005
  12. Zack BrownMay 14, 2005
  13. Petr BaudisMay 14, 2005
  14. Zack BrownMay 14, 2005

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.