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

Re: read-for-fill and caching in gitweb (Re: kernel.org mirroring)

From
Martin Langhoff <martin.langhoff@gmail.com>
Date
Dec 29, 2006, 11:46 UTC
Message-ID
<46a038f90612290346n35386e14g922465d66beaf5ab@mail.gmail.com>
In-Reply-To
<200612291140.46909.jnareb@gmail.com>
On 12/29/06, Jakub Narebski <jnareb@gmail.com> wrote:
Show 5 quoted lines
> It is simply the case that new features cost more. Namely in earlier
> versions of gitweb Last Change time was taken from HEAD (from current
> branch), in newer we check all branches (using git-for-each-ref).
> For published public repository it migh make sense to pack also heads
> (make them packed refs).

I haven't been using packed refs at all, but it sounds like it's a single file. So we can stat just that file rather than ask questions about the heads themselves. That makes checking for if-modified-since cheap as well.

> I was thinking about making this a gitweb %feature, allowing gitweb
> administrator to chose if Last Change is taken from all branches
> (as it is now), from HEAD (as it was before), or from given branch
> (for example master).

I think the natural thing is to check all heads (doing it on the cheap on packed-refs repos) and provide tuning tips. in this case "use packed refs" which I guess will become the default eventually.

cheers,
martin
Previous: Jakub NarebskiNext: Jakub Narebski
Message 4 of 6 in “read-for-fill and caching in gitweb (Re: kernel.org mirroring)”
  1. Martin LanghoffDec 28, 2006
  2. Robert FitzsimonsDec 29, 2006
  3. Jakub NarebskiDec 29, 2006
  4. Martin LanghoffDec 29, 2006
  5. Jakub NarebskiDec 29, 2006
  6. Robert FitzsimonsDec 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.