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

Re: Lift --stdout restriction for using reachability bitmap in pack-objects?

From
Jeff King <peff@peff.net>
Date
Feb 17, 2015, 10:13 UTC
Message-ID
<20150217101344.GA5343@peff.net>
In-Reply-To
<CACsJy8AC5ZcsB2_qS4k-+6fJt2_e7m=o8C9UAEcywh=P_4HXAw@mail.gmail.com>
On Tue, Feb 17, 2015 at 05:07:36PM +0700, Duy Nguyen wrote:
> Commit 6b8fda2 (pack-objects: use bitmaps when packing objects -
> 2013-12-21) turns off reachability bitmap optimization if --stdout is
> not specified. I wonder if we could lift this restriction?

I'm not sure what else would break if we did. For instance, would bitmaps kick in when doing the "Counting objects" phase of "git repack -ad". And if so, what would the resulting pack look like?

So I'm not opposed to it in principle, but I suspect there's some cleanup work to be done. But...

Show 5 quoted lines
> My use case is debugging pack-objects in gdb (repeatedly) where this
> optimization could really save time. But specifying --stdout would
> clutter gdb interface.. I don't know this code well enough to judge,
> but I think the worst thing is we don't write .idx file out (maybe
> because it would involve a lot more work).
If the only reason is for gdb, then perhaps:
  set args pack-objects --stdout </dev/null >/dev/null
in gdb would help?
-Peff
Previous: Duy NguyenNext: Duy Nguyen
Message 2 of 5 in “Lift --stdout restriction for using reachability bitmap in pack-objects?”
  1. Duy NguyenFeb 17, 2015
  2. Jeff KingFeb 17, 2015
  3. Duy NguyenFeb 17, 2015
  4. Jeff KingFeb 17, 2015
  5. Kyle J. McKayFeb 19, 2015

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.