git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "J.H." <warthog19@eaglescrag.net>
To: Jakub Narebski <jnareb@gmail.com>
Cc: git@vger.kernel.org, Petr Baudis <pasky@suse.cz>
Subject: Re: [RFC/PATCH] gitweb: Paginate project list
Date: Sat, 10 May 2008 22:53:30 -0700	[thread overview]
Message-ID: <1210485210.11526.145.camel@localhost.localdomain> (raw)
In-Reply-To: <200805110032.39729.jnareb@gmail.com>


On Sun, 2008-05-11 at 00:32 +0200, Jakub Narebski wrote:
> On Sun, 10 May 2008, J.H. <warthog19@eaglescrag.net> wrote:
> 
> > $page_size should be moved to a configuration directive, with a possible
> > default of 100, and there should be an option to turn it off completely
> > (I.E. kernel.org will likely have it turned off).
> 
> If it would be configurable (and I agree that it is probably a good
> idea), it should be per gitweb instance (i.e. global variable), and
> should perhaps be named $project_list_page_size to distinguish it from
> number of items shown (page size) for 'shortlog', 'log' and 'history'
> views.
> 
> I guess that value of 0, or perhaps of undef would mean to not divide
> projects list, or project search results, into pages.
> 
> BTW. why do you think that kernel.org would be better to have project
> list pagination turned off?

If we have caching on I'd rather leave it as a single page, much easier
to search on and with firefox /<project or name> then <ctrl>+g a couple
of times is really fast to find what I need.  Also means less to cache
(good for us) and faster access for most.  I'm going to guess leaving it
as a single page, unless it gets *very* unwieldy, will be how we leave
it.

>  
> > It might also be advantageous to generate the entire list and stash that
> > somewhere, (session on the host side?) and run the pagination out of
> > that.
> 
> First, when using $projectslist file with new (second patch in series,
> "gitweb: Allow project description in project_index file" most of data
> (well, all except age) would be filled by parsing single file.
> 
> Second, the idea is to cache results of filled in @$projlist e.g. using
> Storable, i.e. cache Perl data and not final HTML output.

I approve of that plan, caching all the html is kinda expensive *hides
the 20G of gitweb cache he has*

> 
> > Would even allow the user to choose how many items they wish to 
> > see from a drop down maybe?
> 
> I think it is also a good idea, at least for search results.
> 
> 
> NOTE that this was an RFC patch, meant mainly to provide comments on
> what to improve...

I know, that's why I'm chiming in with my thoughts, I like the idea and
bonus points go to the user configurable display on that.  There are
definitely sites that can benefit from this and likely at some point
k.org is going to need have to paginate - just not sure when that point
is going to get hit.

- John 'Warthog9' Hawley

  reply	other threads:[~2008-05-11  5:55 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. [this message]
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
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=1210485210.11526.145.camel@localhost.localdomain \
    --to=warthog19@eaglescrag.net \
    --cc=git@vger.kernel.org \
    --cc=jnareb@gmail.com \
    --cc=pasky@suse.cz \
    /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).