[Webkit-unassigned] [Bug 44375] Copying Paths is expensive. toPathData() should avoid causing a copy.

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sat Aug 21 09:42:46 PDT 2010


https://bugs.webkit.org/show_bug.cgi?id=44375





--- Comment #6 from Dirk Schulze <krit at webkit.org>  2010-08-21 09:42:46 PST ---
(In reply to comment #4)
> (From update of attachment 65026 [details])
> This doesn't really change our performance on http://themaninblue.com/experiment/AnimationBenchmark/svg/
> 
> I think a better approach would be the one mentioned in 44374 of using the unit circle and transforming it.
> 
> This might speed up some painting ever so slightly, since we're not copying Paths as much.  All of the uses of Path::create* were causing a Path copy.
> 
> In the shark sample, this brought our time spent under SVGCircleElement::toPathData up to 8.9% after the change, but before the change, toPathData + Path::operator= + CFRelease (which were all related to copying paths) was over 12% in total.
> 
> I'm not sure if I should finish this land this patch or not, but I'm putting it here for comments anyway.

I think I had perf problems with path transformations in CG in the past. IIRC CG copys the patch on transformations anyway. So it might not bring a better performance. I Discussed a similar issue with Oliver in Canvas. Oliver should know better.

-- 
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