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

Re: git to libgit2 code relicensing

From
Shawn O. Pearce <spearce@spearce.org>
Date
Nov 17, 2008, 15:40 UTC
Message-ID
<20081117154040.GO2932@spearce.org>
In-Reply-To
<49211C19.5010409@op5.se>
Andreas Ericsson <ae@op5.se> wrote:
Show 7 quoted lines
>
> "Copy-rewrite", naturally. Being able to lift much of the data-munging code
> is a great benefit. It's basically just the revision traversal (which is
> heavy on state-dependant code) that I haven't quite figured out how to do
> yet, but I believe Shawn's idea of using revision pools is most likely the
> way to go. Each application has to make sure a pool isn't modified by more
> than one thread, but each application can have as many pools as it likes.

I also like Pierre's idea of using annotation data in different annotation pools, and storing the rewritten parents in such a pool. Then an application can more easily reuse a revision pool, by just tossing the rewritten parent pool, or any other annotations it wants to recompute.

It may still be important to have revision pools and make them not thread-safe, so we can void fine-grained locking costs in the library during the tight revision traversal loops.

-- 
Shawn.
Previous: Andreas EricssonNext: Andreas Ericsson
Message 32 of 33 in “git to libgit2 code relicensing”
  1. Andreas EricssonNov 14, 2008
  2. Martin KoeglerNov 14, 2008
  3. Sverre RabbelierNov 14, 2008
  4. Andreas EricssonNov 14, 2008
  5. Andreas EricssonNov 14, 2008
  6. Martin KoeglerNov 15, 2008
  7. Linus TorvaldsNov 14, 2008
  8. Shawn O. PearceNov 14, 2008
  9. David BrownNov 15, 2008
  10. Shawn O. PearceNov 15, 2008
  11. Nicolas PitreNov 15, 2008
  12. David BrownNov 15, 2008
  13. Miklos VajnaNov 15, 2008
  14. Junio C HamanoNov 15, 2008
  15. Miklos VajnaNov 15, 2008
  16. Pierre HabouzitNov 15, 2008
  17. David BrownNov 15, 2008
  18. Linus TorvaldsNov 15, 2008
  19. Andreas EricssonNov 15, 2008
  20. Pau Garcia i QuilesNov 15, 2008
  21. Andreas EricssonNov 15, 2008
  22. Pau Garcia i QuilesNov 15, 2008
  23. Andreas EricssonNov 15, 2008
  24. David BrownNov 15, 2008
  25. Daniel BarkalowNov 16, 2008
  26. René ScharfeNov 20, 2008
  27. Kristian HøgsbergNov 25, 2008
  28. Andreas EricssonNov 16, 2008
  29. Johannes SchindelinNov 16, 2008
  30. Sverre RabbelierNov 16, 2008
  31. Andreas EricssonNov 17, 2008
  32. Shawn O. PearceNov 17, 2008
  33. Andreas EricssonNov 17, 2008

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.