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

Re: [PATCHv4] Add Gitweb support for XZ compressed snapshots

From
Jakub Narebski <jnareb@gmail.com>
Date
Jul 31, 2009, 18:27 UTC
Message-ID
<m38wi4so66.fsf@localhost.localdomain>
In-Reply-To
<4A7332F3.50908@eaglescrag.net>
"J.H." <warthog19@eaglescrag.net> writes:
> Mark A Rada wrote:
Show 13 quoted lines
> > I have not enabled XZ compression by default because the current
> > default is GZip, and XZ is only really competitive with
> > BZip2. Also, the XZ format is still fairly new (the format was
> > declared stable about 6 months ago), and there have been no
> > "stable" releases of the utils yet.
> 
> One thing that would concern me greatly, is not so much the CPU time
> (though that's a *huge* change in comparison to gz) but the memory
> usage.  Where gzip and bzip2 are chewing 4M and 13M respectively, xz
> chews 102M.  From a 'beefy' server perspective chewing up that much
> memory per snapshot for that long could be bad.  This is likely
> something that needs to have some sort of enable/disable switch if
> it's going to be included.

First, by default project specific override for 'snapshot' feature is disabled, and only 'tgz' ('.tar.gz') snapshot links are generated.

Second, if you want to enable project specific override for 'snapshot' feature, you can still control what snapshot formats (among 'tgz', 'tbz2', 'zip' and now 'txz') from $GITWEB_CONFIG by simply deleting formats you don't want to be used from %known_snapshot_formats.

For example
  delete $known_snapshot_formats{'txz'};
> 
> Good analysis btw, though I'll admit it makes me leary of something
> dynamically generating xz compressed files.
-- 
Jakub Narebski
Poland
ShadeHawk on #git
Previous: J.H.Next: Jakub Narebski
Message 3 of 4 in “[PATCHv4] Add Gitweb support for XZ compressed snapshots”
  1. Mark A RadaJul 31, 2009
  2. J.H.Jul 31, 2009
  3. Jakub NarebskiJul 31, 2009
  4. Jakub NarebskiJul 31, 2009

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.