[Webkit-unassigned] [Bug 44375] New: Copying Paths is expensive. toPathData() should avoid causing a copy.
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Fri Aug 20 19:49:47 PDT 2010
https://bugs.webkit.org/show_bug.cgi?id=44375
Summary: Copying Paths is expensive. toPathData() should avoid
causing a copy.
Product: WebKit
Version: 528+ (Nightly build)
Platform: PC
OS/Version: Mac OS X 10.5
Status: NEW
Severity: Normal
Priority: P2
Component: SVG
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: eric at webkit.org
CC: zimmermann at kde.org, krit at webkit.org, kbr at google.com
Copying Paths is expensive. toPathData() should avoid causing a copy.
http://themaninblue.com/experiment/AnimationBenchmark/svg
source: http://themaninblue.com/experiment/AnimationBenchmark/svg/js/main.js
We're spending 3% of that benchmark in Path::operator= Crazy! (45% is spent in RenderPath::paint().) toPathData() always causes a copy of the Path which is expensive (at least for CoreGraphics as it's a malloc).
We either should make Path, COW, or we should find a way to avoid this copy in this return.
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list