Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(46)

Issue 23090008: Remove sk_bzero usage from SkMatrix44 for improved performance. (Closed)

Created:
7 years, 4 months ago by shawnsingh
Modified:
7 years, 3 months ago
Reviewers:
jvanverth1, reed1
CC:
skia-review_googlegroups.com, epenner
Visibility:
Public.

Description

Remove sk_bzero usage from SkMatrix44 for improved performance. sk_bzero is not efficient for initializing small chunks of memory. Instead, directly initializing matrix values when needed results in substantial performance improvements. BUG=skia:1558

Patch Set 1 #

Patch Set 2 : even faster inversion for scale/translate matrices #

Unified diffs Side-by-side diffs Delta from patch set Stats (+72 lines, -21 lines) Patch
M src/utils/SkMatrix44.cpp View 1 5 chunks +72 lines, -21 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
shawnsingh
PTAL. benchmarks are here https://codereview.chromium.org/22872015/ that would land first. thanks in advance =)
7 years, 4 months ago (2013-08-24 03:41:31 UTC) #1
shawnsingh
+epenner because of the precision tradeoff for theoretically axis-aligned scale/translations. The second patch for scale/translate ...
7 years, 4 months ago (2013-08-24 04:51:22 UTC) #2
reed1
On 2013/08/24 04:51:22, shawnsingh wrote: > +epenner because of the precision tradeoff for theoretically axis-aligned ...
7 years, 3 months ago (2013-08-26 12:25:09 UTC) #3
shawnsingh
On 2013/08/26 12:25:09, reed1 wrote: > On 2013/08/24 04:51:22, shawnsingh wrote: > > +epenner because ...
7 years, 3 months ago (2013-08-27 10:39:25 UTC) #4
shawnsingh
By the way, I did not forget your suggestion to pull functions out into helper ...
7 years, 3 months ago (2013-08-27 10:42:54 UTC) #5
reed1
lgtm
7 years, 3 months ago (2013-08-27 16:07:58 UTC) #6
shawnsingh
7 years, 3 months ago (2013-08-29 07:37:21 UTC) #7

Powered by Google App Engine
This is Rietveld 408576698