[Seaside] slowdown in squeak3.8

radoslav hodnicak rh at 4096.sk
Sat Jun 25 16:29:01 CEST 2005



On Sat, 25 Jun 2005, Avi Bryant wrote:

>> However, even after I removed calls to encodeForHTTP, rendering anchors
>> takes about 40% of page time (well, which is not really suprising since
>> there are many anchors to render ...)
>
> Oh, yeah, I actually put in an optimization for that at some point
> that now seems to have disappeared.  The idea was to store an
> actionUrlString in the rendering context and use it in most places -
> so, something like this:
>
> WARenderingContext>>actionUrl: aUrl
>  actionUrl := aUrl.
>  actionUrlString := actionUrl displayString
>
> WAHtmlRenderer>>urlForAction: aBlock
>   ^ self context actionUrlString, '&', (self context
> registerActionCallback: aBlock)
>
> Does that help much?


Yes that helps quite a bit, my test page went from 800ms to about 480ms. I 
will try to profile the rendering some more

rado



More information about the Seaside mailing list