W3C home > Mailing lists > Public > whatwg@whatwg.org > October 2008

[whatwg] Canvas performance issue: setting colors

From: Robert Sayre <sayrer@gmail.com>
Date: Fri, 3 Oct 2008 19:11:53 -0400
Message-ID: <68fba5c50810031611x606a0188rbbabb8ddbee6c07@mail.gmail.com>
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

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:06 UTC