Yes, like the refactoring. LGTM. What's the perf gain coming from - was there a ...
12 years, 11 months ago
(2011-12-14 15:18:25 UTC)
#2
Yes, like the refactoring. LGTM.
What's the perf gain coming from - was there a rewrite in the code that got
pulled out into the new function? If so, it wasn't easy to spot; the logic for
what gets copied & what gets skipped looks equivalent...
On 2011/12/14 15:18:25, TomH wrote: > Yes, like the refactoring. LGTM. > What's the perf ...
12 years, 11 months ago
(2011-12-14 15:33:19 UTC)
#3
On 2011/12/14 15:18:25, TomH wrote:
> Yes, like the refactoring. LGTM.
> What's the perf gain coming from - was there a rewrite in the code that got
> pulled out into the new function? If so, it wasn't easy to spot; the logic for
> what gets copied & what gets skipped looks equivalent...
Now I'm not sure if there really was a perf gain at all given the flakiness of
the bench runs. But it looked like there were some extra store/loads around the
stage enabled bool and also in determining whether to check skipColor or
skipCoverage based on the stage index and desc.firstCoverageStage(). In any
event I'm confident the performance isn't worse and I think it is an improvement
to the code.
Issue 5486054: two loops for setting stage descs
(Closed)
Created 12 years, 11 months ago by bsalomon
Modified 12 years, 10 months ago
Reviewers: TomH
Base URL: http://skia.googlecode.com/svn/trunk/
Comments: 0