[whatwg] Canvas performance issue: setting colors

On Mon, Sep 29, 2008 at 6:24 PM, Sjoerd Visscher <sjoerd at w3future.com> wrote:
>
> A large percentage of the time goes into building color strings for setting
> the strokeStyle, which the browser then has to take apart again. This is a
> very unnecessary performance hit. (Btw, on my Mac this runs faster under
> Google Chrome in VMware than natively in the latest Webkit nightly.)

I see that your test case include setTimeout(doIteration, 0);

Are you sure this doesn't boil down to the difference between Chrome
and WebKit's setTimeout minimum delay?

-- 

Robert Sayre

"I would have written a shorter letter, but I did not have the time."

Received on Friday, 3 October 2008 16:11:53 UTC