Bug 42149 - [CAIRO] performance issues on Canvas
Summary: [CAIRO] performance issues on Canvas
Status: RESOLVED WORKSFORME
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKitGTK (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC OS X 10.5
: P2 Normal
Assignee: Nobody
URL: http://www.graphycalc.com/
Keywords:
Depends on:
Blocks:
 
Reported: 2010-07-13 00:47 PDT by Dirk Schulze
Modified: 2011-11-04 11:04 PDT (History)
2 users (show)

See Also:


Attachments
Full perf report (3.53 MB, text/plain)
2010-08-18 10:43 PDT, Gustavo Noronha (kov)
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dirk Schulze 2010-07-13 00:47:03 PDT
Did not investigate on the problem, but there seems to be an perf issue on Canvas for the link above.
Comment 1 Gustavo Noronha (kov) 2010-08-18 10:39:35 PDT
The situation seems to be much better with current master. Unnecessary copying of images, recently fixed, might have something to do with this?
Comment 2 Gustavo Noronha (kov) 2010-08-18 10:42:18 PDT
Most of the time currently seems to be spent inside cairo (as I would expect):

    68.49%  /home/kov/gnome/usr/lib64/libcairo.so.2.10912.0                   GtkLauncher
Comment 3 Gustavo Noronha (kov) 2010-08-18 10:43:37 PDT
Created attachment 64733 [details]
Full perf report

Here's the full output of my (quick) perf run.
Comment 4 Dirk Schulze 2010-08-18 11:52:13 PDT
We call save and restore on every filling or stroking of a path. And on filling a path, we call cairo_paint_with_alpha instead of cairo_fill if we don't have alpha for regular colors. I guess it would be a speedup if we can get rid of it somehow.

It's not only canvas, SVG has the same issues.
Comment 5 Martin Robinson 2011-11-04 11:04:39 PDT
The link is quite speedy for my system and the issues that Dirk mentions are fixed in the patch here: https://bugs.webkit.org/show_bug.cgi?id=71179