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

Re: Packfile can't be mapped

From
Jon Smirl <jonsmirl@gmail.com>
Date
Aug 28, 2006, 14:15 UTC
Message-ID
<9e4733910608280715s52ae1d48n8886f24034cf44a5@mail.gmail.com>
In-Reply-To
<20060828060029.GB25285@spearce.org>
On 8/28/06, Shawn Pearce <spearce@spearce.org> wrote:
Show 6 quoted lines
> Of course the major problem with pack-local, stream global
> dictionaries is it voids the ability to reuse that zlib'd content
> from that pack in another pack without wholesale copying the
> dictionary as well.  This is an issue for servers which want to
> copy out the pack entry without recompressing it but also want the
> storage savings from the global dictionaries.

If you copy an entire pack with a dictionary embedded in it everything is fine. But if you pull objects out of the pack for transmission it looks like they will need to be unpacked and repacked without the dictionary. My plan was to only use dictionaries in archival packs that would be used in a read only manner and copied around whole.

So there would need to something like an archive flag on git-repack which would spend extra CPU time trying to make the pack as small as possible. Normal use of git-repack wouldn't touch packs marked with the archive flag since they were already in optimal form.

-- 
Jon Smirl
jonsmirl@gmail.com
Previous: Shawn PearceNext: Nicolas Pitre
Message 6 of 16 in “Packfile can't be mapped”
  1. Jon SmirlAug 28, 2006
  2. Shawn PearceAug 28, 2006
  3. Nicolas PitreAug 28, 2006
  4. Linus TorvaldsAug 28, 2006
  5. Shawn PearceAug 28, 2006
  6. Jon SmirlAug 28, 2006
  7. Nicolas PitreAug 28, 2006
  8. Jon SmirlAug 28, 2006
  9. Nicolas PitreAug 28, 2006
  10. Shawn PearceAug 28, 2006
  11. Nicolas PitreAug 28, 2006
  12. Shawn PearceAug 28, 2006
  13. Shawn PearceAug 28, 2006
  14. Nicolas PitreAug 28, 2006
  15. Shawn PearceAug 29, 2006
  16. Shawn PearceAug 29, 2006

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.