[Seaside] [Seaside-dev] Optimization / performance tuning

Philippe Marschall philippe.marschall at gmail.com
Mon May 18 14:02:10 UTC 2015


On Mon, May 18, 2015 at 9:24 AM, Johan Brichau <johan at inceptive.be> wrote:
>
> On 17 May 2015, at 21:54, Phil (list) <pbpublist at gmail.com> wrote:
>
> On Sun, 2015-05-17 at 13:26 +0200, Johan Brichau wrote:
>
> I have never tried anything along those lines but you could decorate a
> component and keep the rendered html in that decoration. Something along:
>
> renderContentOn: html
> ^ html html: (generatedHtml ifNil:[ generatedHtml := WAHtmlCanvas builder
> render:[:html2 | self renderNextOn: html2 ] ])
>
>
> That's an interesting idea... I'll give it a shot.
>
>
> There are probably a lot of caveats in this case. For example, all generated
> links will refer to the wrong continuation in all but the first rendering
> pass.
> The more I think about what I mentioned, the less I think it’s a good way to
> approach this, but it depends on what you want to do. I guess the hint about
> WABuilder is the only thing to remember from my reply :)


Right, in general you should not use #callback if you intend to cache
the result.

Cheers
Philippe


More information about the seaside mailing list