List for cgit developers and users
 help / color / mirror / Atom feed
From: Jason at zx2c4.com (Jason A. Donenfeld)
Subject: Intelligent caching
Date: Thu, 6 Feb 2014 20:55:14 +0100	[thread overview]
Message-ID: <CAHmME9pnwMN3+sqNSYnZmdKDRpHV6-LJzSdHzkC97EXScB1zUg@mail.gmail.com> (raw)
In-Reply-To: <20140205101803.11006.80879@typhoon.lan>

This could be clever, if it's done properly. It'd have to be something
along the lines of "this page won't ever change, unless you can create an
sha1 hash collision", and we'd have to be certain that such pages then only
use information out of that sha1 object, and not additional related objects
that can be changed.

On Wed, Feb 5, 2014 at 11:18 AM, Lukas Fleischer <cgit at cryptocrack.de>wrote:

> Hi,
>
> Reading through our caching code, I wondered why we don't make it a bit
> more clever. For every dynamically created page, we could just store a
> fingerprint that can be computed quite fast and indicates whether the
> cache slot is still up-to-date or not.
>
> For example, on the log pages, we could save the commit the
> corresponding ref points to and invalidate the cache slot when the ref
> has changed. Using that, we could use the power of caching and never
> deliver outdated pages at the same time.
>
> What do you think about that?
>
> Regards,
> Lukas
> _______________________________________________
> CGit mailing list
> CGit at lists.zx2c4.com
> http://lists.zx2c4.com/mailman/listinfo/cgit
>



-- 
Jason A. Donenfeld
Deep Space Explorer
fr: +33 6 51 90 82 66
us: +1 513 476 1200
www.jasondonenfeld.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.zx2c4.com/pipermail/cgit/attachments/20140206/a3c6209f/attachment.html>


  reply	other threads:[~2014-02-06 19:55 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-02-05 10:18 cgit
2014-02-06 19:55 ` Jason [this message]
2014-02-18 11:48   ` cgit

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=CAHmME9pnwMN3+sqNSYnZmdKDRpHV6-LJzSdHzkC97EXScB1zUg@mail.gmail.com \
    --to=cgit@lists.zx2c4.com \
    /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).