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

Re: Gitweb caching: Google Summer of Code project

From
Petr Baudis <pasky@suse.cz>
Date
May 30, 2008, 15:07 UTC
Message-ID
<20080530150713.GG593@machine.or.cz>
In-Reply-To
<4840166C.3030903@gmail.com>
On Fri, May 30, 2008 at 04:59:56PM +0200, Lea Wiemann wrote:
Show 7 quoted lines
> Jakub Narebski wrote:
>> IIRC the policy usually is that one can install packages
>> from main (base) repository for Linux distribution used on server,
>
> libcache-memcached-perl is in Debian stable; that's fair enough I think.  
> Cache::Memcached::Fast doesn't seem to be in Debian as of now, but I 
> wouldn't worry about performance unless it comes up.

Still, please make this optional. It is fine for gitweb not to do any caching in the bare setup, but you should be able to get the simple version running without any external dependencies.

Show 5 quoted lines
>>>> By the way what do you think about adding (as an option) information
>>>> about gitweb performance to the [HTML] output,
>> I'd try to add it when I'd have a bot more of free time
>
> I'd probably wait with this until I've written the Perl Git API.
Hmm, it shouldn't depend on that in any way, should it?

use Time::HiRes qw(gettimeofday tv_interval); my $t0 = [gettimeofday]; ... print "<p>This page took ".tv_interval($t0, [gettimeofday])."s to generate.</p>";

I wonder what oldest Perl versions do we aim to support? If <5.8, we need to be more careful about Time::HiRes. It would be useful to document this with a use perl statement at the top of the script.

-- 
				Petr "Pasky" Baudis
Whatever you can do, or dream you can, begin it.
Boldness has genius, power, and magic in it.	-- J. W. von Goethe
Previous: Lea WiemannNext: Lea Wiemann
Message 10 of 18 in “Gitweb caching: Google Summer of Code project”
  1. Lea WiemannMay 27, 2008
  2. Jakub NarebskiMay 27, 2008
  3. Lea WiemannMay 27, 2008
  4. Jakub NarebskiMay 28, 2008
  5. Lea WiemannMay 28, 2008
  6. Jakub NarebskiMay 29, 2008
  7. Lea WiemannMay 30, 2008
  8. Jakub NarebskiMay 30, 2008
  9. Lea WiemannMay 30, 2008
  10. Petr BaudisMay 30, 2008
  11. Lea WiemannMay 30, 2008
  12. Petr BaudisMay 30, 2008
  13. Rafael Garcia-SuarezMay 30, 2008
  14. J.H.May 30, 2008
  15. Junio C HamanoMay 30, 2008
  16. Lea WiemannMay 30, 2008
  17. Lea WiemannMay 30, 2008
  18. Jakub NarebskiMay 31, 2008

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.