Re: [PATCH 3/3] gitweb: use new Git::Repo API, and add optional caching

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Lea Wiemann
Date: Monday, July 14, 2008 - 6:16 pm

Jakub Narebski wrote:

It doesn't seem to be too much of a performance issue (it takes ~500ms
to generate the project list on kernel.org), and project lists aren't
requested often enough to be a good optimization target.

I'll see how it performs when the OS's page cache is cold though; if
it's too slow then I might revisit the issue.


*nods*


Gitweb provides a view on a live repository, so I don't think caching is
usually what you want (e.g. static pages really tend to change much less
frequently).  (And yes, my Opera *does* seem to cache those pages unless
you add no-cache.)

Really, I don't think the performance penalty of revalidation will be
significant enough to justify risking stale data.  IOW, it's pretty
fast.  Check out repo.or.cz's performance (and repo.or.cz doesn't even
use Last-Modified).


For the $cache, it's in the caching backend, for the $large_cache, there
is no mechanism, so you need to clean up yourself.  See the patch. ;-)
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 0/3] Git::Repo API and gitweb caching, Lea Wiemann, (Thu Jul 10, 6:06 pm)
[PATCH 2/3] add new Git::Repo API, Lea Wiemann, (Thu Jul 10, 6:11 pm)
Re: [PATCH 0/3] Git::Repo API and gitweb caching, Johannes Schindelin, (Thu Jul 10, 6:21 pm)
Re: [PATCH 0/3] Git::Repo API and gitweb caching, Jakub Narebski, (Fri Jul 11, 2:33 am)
Re: [PATCH 0/3] Git::Repo API and gitweb caching, Lea Wiemann, (Fri Jul 11, 7:07 am)
Re: [PATCH 0/3] Git::Repo API and gitweb caching, Abhijit Menon-Sen, (Fri Jul 11, 9:27 am)
Re: [PATCH 0/3] Git::Repo API and gitweb caching, Jakub Narebski, (Sat Jul 12, 8:08 am)
Re: [PATCH 2/3] add new Git::Repo API, Jakub Narebski, (Sun Jul 13, 4:28 pm)
Re: [PATCH 2/3] add new Git::Repo API, Petr Baudis, (Sun Jul 13, 6:40 pm)
Re: [PATCH 2/3] add new Git::Repo API, Lea Wiemann, (Sun Jul 13, 7:29 pm)
Re: [PATCH 2/3] add new Git::Repo API, Lea Wiemann, (Mon Jul 14, 3:19 pm)
Re: [PATCH 2/3] add new Git::Repo API, Jakub Narebski, (Mon Jul 14, 4:41 pm)
Re: [PATCH 2/3] add new Git::Repo API, Lea Wiemann, (Mon Jul 14, 5:11 pm)
Re: [PATCH 3/3] gitweb: use new Git::Repo API, and add opt ..., Lea Wiemann, (Mon Jul 14, 6:16 pm)
Re: [PATCH 3/3] gitweb: use new Git::Repo API, and add opt ..., Johannes Schindelin, (Mon Jul 14, 6:28 pm)
Re: [PATCH 2/3] add new Git::Repo API, Jakub Narebski, (Wed Jul 16, 11:21 am)
Re: [PATCH 2/3] add new Git::Repo API, Lea Wiemann, (Wed Jul 16, 1:32 pm)
Re: [PATCH 2/3] add new Git::Repo API, Jakub Narebski, (Thu Jul 17, 4:49 pm)
Re: [PATCH 2/3] add new Git::Repo API, Lea Wiemann, (Fri Jul 18, 6:40 am)
Re: [PATCH 2/3] add new Git::Repo API, Jakub Narebski, (Fri Jul 18, 8:35 am)
Re: [PATCH 2/3] add new Git::Repo API, Petr Baudis, (Fri Jul 18, 9:48 am)
Re: [PATCH 2/3] add new Git::Repo API, Lea Wiemann, (Fri Jul 18, 9:51 am)
Re: [PATCH 2/3] add new Git::Repo API, Petr Baudis, (Fri Jul 18, 9:54 am)
Re: [PATCH 2/3] add new Git::Repo API, Jakub Narebski, (Fri Jul 18, 10:05 am)
Re: [PATCH 2/3] add new Git::Repo API, Petr Baudis, (Fri Jul 18, 10:17 am)
Re: [PATCH 2/3] add new Git::Repo API, Lea Wiemann, (Fri Jul 18, 11:09 am)
Re: [PATCH 2/3] add new Git::Repo API, Petr Baudis, (Fri Jul 18, 11:19 am)
Re: [PATCH 2/3] add new Git::Repo API, Johannes Schindelin, (Fri Jul 18, 11:23 am)
Re: [PATCH 2/3] add new Git::Repo API, Jakub Narebski, (Fri Jul 18, 5:03 pm)
Re: [PATCH 0/3] Git::Repo API and gitweb caching, Lea Wiemann, (Fri Jul 18, 10:35 pm)
Re: [PATCH 2/3] add new Git::Repo API, Jakub Narebski, (Sat Jul 19, 12:07 pm)
Re: Statictics on Git.pm usage in git commands (was: [PATC ..., Johannes Schindelin, (Sun Jul 20, 3:38 am)
Re: Statictics on Git.pm usage in git commands (was: [PATC ..., Johannes Schindelin, (Sun Jul 20, 5:33 am)
Re: Statictics on Git.pm usage in git commands (was: [PATC ..., Johannes Schindelin, (Sun Jul 20, 6:21 am)
Re: [PATCH 2/3] add new Git::Repo API, Petr Baudis, (Sun Jul 20, 2:36 pm)
Re: [PATCH 2/3] add new Git::Repo API, Jakub Narebski, (Sun Jul 20, 2:50 pm)
Re: [PATCH 0/3] Git::Repo API and gitweb caching, Lea Wiemann, (Mon Aug 18, 12:34 pm)