Return-Path: X-Original-To: apmail-incubator-allura-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-allura-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 9B13510BD4 for ; Fri, 4 Oct 2013 19:02:36 +0000 (UTC) Received: (qmail 43443 invoked by uid 500); 4 Oct 2013 19:02:36 -0000 Delivered-To: apmail-incubator-allura-dev-archive@incubator.apache.org Received: (qmail 43419 invoked by uid 500); 4 Oct 2013 19:02:36 -0000 Mailing-List: contact allura-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: allura-dev@incubator.apache.org Delivered-To: mailing list allura-dev@incubator.apache.org Received: (qmail 43408 invoked by uid 99); 4 Oct 2013 19:02:36 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 04 Oct 2013 19:02:36 +0000 X-ASF-Spam-Status: No, hits=-0.1 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of noreply@sourceforge.net designates 216.34.181.60 as permitted sender) Received: from [216.34.181.60] (HELO smtp.ch3.sourceforge.com) (216.34.181.60) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 04 Oct 2013 19:02:29 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sourceforge.com; s=x; h=Date:Message-ID:Subject:Reply-To:From:To:MIME-Version:Content-Type; bh=z+hD8djxp+L4FuF1SZ+6ezfwYLe0wVfagt8m5LqfTWI=; b=CRyKx+vpTNh6h2vDFHXGVJZ0lGZ4ofUI3L5hW5s2DGqLqvA5DMbeVCeYxarX/p10HYcViS4fAR0RNGdZ4+13hclpBLKVQJJOjZz4wMz3MnolhwMWGvzsu3arzjkGvzYJijyBRrV7Sg9bRjPLxtNaS6JVDbb7dC4EMJyAiGz0CZk=; Received: from localhost ([127.0.0.1] helo=sfs-alluradaemon-2.v29.ch3.sourceforge.com) by sfs-alluradaemon-2.v29.ch3.sourceforge.com with esmtp (Exim 4.76) (envelope-from ) id 1VSAdd-0004bv-5O for allura-dev@incubator.apache.org; Fri, 04 Oct 2013 19:02:09 +0000 Content-Type: multipart/related; boundary="===============4459991230413957173==" MIME-Version: 1.0 To: "[allura:tickets] " <6735@tickets.allura.p.re.sf.net> From: "Dave Brondsema" Reply-To: "[allura:tickets] " <6735@tickets.allura.p.re.sf.net> Subject: [allura:tickets] #6735 Cache markdown rendering results -> posts first Message-ID:

Date: Fri, 04 Oct 2013 19:02:09 +0000 X-Virus-Checked: Checked by ClamAV on apache.org --===============4459991230413957173== Content-Type: multipart/alternative; boundary="===============4218115243845132368==" MIME-Version: 1.0 --===============4218115243845132368== MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Let's store this as a field right on the post artifact, so it's available to check during the render call easily. Only cache when needed, e.g. render time above a configurable threshold value. --- ** [tickets:#6735] Cache markdown rendering results -> posts first** **Status:** open **Labels:** performance **Created:** Thu Oct 03, 2013 07:00 PM UTC by Dave Brondsema **Last Updated:** Thu Oct 03, 2013 07:00 PM UTC **Owner:** nobody Some markdown content (e.g. lots of HTML) can take a while to render. Let's cache the results, and serve the HTML result directly for future requests. Scope: let's limit to just Post comments first, since those can have many show up on one page. Plan for the future where any artifact might have a cached result that can be served up. Cache invalidation: need to invalidate when the content changes, of course. Also macros and artifact-references can be incorrect when those remote content changes. I don't think we have a way to invalidate based on those easily. Keeping scope to comment posts will help, since those don't have many macros (e.g. compared to wiki & tickets for example) --- Sent from sourceforge.net because allura-dev@incubator.apache.org is subscribed to https://sourceforge.net/p/allura/tickets/ To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/allura/admin/tickets/options. Or, if this is a mailing list, you can unsubscribe from the mailing list. --===============4218115243845132368== MIME-Version: 1.0 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: 7bit

Let's store this as a field right on the post artifact, so it's available to check during the render call easily.

Only cache when needed, e.g. render time above a configurable threshold value.


[tickets:#6735] Cache markdown rendering results -> posts first

Status: open
Labels: performance
Created: Thu Oct 03, 2013 07:00 PM UTC by Dave Brondsema
Last Updated: Thu Oct 03, 2013 07:00 PM UTC
Owner: nobody

Some markdown content (e.g. lots of HTML) can take a while to render. Let's cache the results, and serve the HTML result directly for future requests.

Scope: let's limit to just Post comments first, since those can have many show up on one page. Plan for the future where any artifact might have a cached result that can be served up.

Cache invalidation: need to invalidate when the content changes, of course. Also macros and artifact-references can be incorrect when those remote content changes. I don't think we have a way to invalidate based on those easily. Keeping scope to comment posts will help, since those don't have many macros (e.g. compared to wiki & tickets for example)


Sent from sourceforge.net because allura-dev@incubator.apache.org is subscribed to https://sourceforge.net/p/allura/tickets/

To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/allura/admin/tickets/options. Or, if this is a mailing list, you can unsubscribe from the mailing list.

--===============4218115243845132368==-- --===============4459991230413957173==--