From: "Lars Hjemli" <hjemli@gmail.com>
To: "Jakub Narebski" <jnareb@gmail.com>
Cc: git@vger.kernel.org, "Petr Baudis" <pasky@suse.cz>,
"John Hawley" <warthog19@eaglescrag.net>
Subject: Re: [RFC/PATCH] gitweb: Paginate project list
Date: Tue, 13 May 2008 21:30:45 +0200 [thread overview]
Message-ID: <8c5c35580805131230p37953e33he97803c0609012fa@mail.gmail.com> (raw)
In-Reply-To: <200805131904.38317.jnareb@gmail.com>
On Tue, May 13, 2008 at 7:04 PM, Jakub Narebski <jnareb@gmail.com> wrote:
> On Tue, 13 May 2008, Lars Hjemli wrote:
> > On Tue, May 13, 2008 at 8:55 AM, Jakub Narebski <jnareb@gmail.com> wrote:
> >>
> >> But please take into account that gitweb performance, and I guess any
> >> git web interface performance, is I/O bound and not CPU bound (at least
> >> according to what I remember from J.H. emails). So a little more
> >> processing is I think less important than avoiding hitting the repos.
> >
> > Yeah, that's a pretty convincing argument for "cache the data, not the
> > output", at least for gitweb (cgit never touches the repos to generate
> > the project list/search).
>
> First, this is less argument for "cache data" against "cache output",
> only against disregarding "cache data" for assumed performance reasons,
> while it "cache data" can be useful in some places.
Ok, then I misinterpreted your argument.
> Second, gitweb's projects list page contains "Last Changed" column,
> and you _*have*_ to hit repositories for this data
No you don't. One alternative is to use the post-update hook in each
repo to update a separate file with info about last-changed-time.
Another (less accurate) alternative is to stat one or more of
packed-refs and refs/heads/*; cgit uses both of these alternatives to
avoid hitting the repo (i.e. object-db) when the project list/search
page is generated.
--
larsh
next prev parent reply other threads:[~2008-05-13 19:31 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-05-01 10:20 [RFC/PATCH] gitweb: Simplify git_project_list_body Jakub Narebski
2008-05-02 10:30 ` [RFC/PATCH] gitweb: Allow project description in project_index file Jakub Narebski
2008-05-02 13:04 ` Miklos Vajna
2008-05-03 9:03 ` Jakub Narebski
2008-05-04 2:03 ` Miklos Vajna
2008-05-09 13:23 ` [RFC/PATCH] gitweb: Project search Jakub Narebski
2008-05-10 9:28 ` [RFC/PATCH] gitweb: Paginate project list Jakub Narebski
2008-05-10 18:28 ` J.H.
2008-05-10 22:32 ` Jakub Narebski
2008-05-11 5:53 ` J.H.
2008-05-11 23:51 ` Jakub Narebski
[not found] ` <8c5c35580805102356p7e5532aah319af921f9b19392@mail.gmail.com>
2008-05-12 7:03 ` Jakub Narebski
2008-05-12 15:43 ` Lars Hjemli
2008-05-13 6:55 ` Jakub Narebski
[not found] ` <8c5c35580805130939m1a1ef8e0yd72402f3c79190ea@mail.gmail.com>
2008-05-13 16:46 ` Lars Hjemli
2008-05-13 17:04 ` Jakub Narebski
2008-05-13 19:11 ` Kristian Høgsberg
2008-05-13 19:30 ` Lars Hjemli [this message]
2008-05-13 23:28 ` Jakub Narebski
2008-05-14 7:59 ` Jakub Narebski
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=8c5c35580805131230p37953e33he97803c0609012fa@mail.gmail.com \
--to=hjemli@gmail.com \
--cc=git@vger.kernel.org \
--cc=jnareb@gmail.com \
--cc=pasky@suse.cz \
--cc=warthog19@eaglescrag.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).