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

Issue 695443005: Optimize SkRect::sort() (Closed)

Created:
6 years, 1 month ago by qiankun
Modified:
6 years, 1 month ago
Reviewers:
mtklein, reed1
CC:
reviews_skia.org
Base URL:
https://skia.googlesource.com/skia.git@master
Project:
skia
Visibility:
Public.

Description

Optimize SkRect::sort() This optimization can reduce comparison and assignments. For geo_rect_sort benchmark, performance improved to 1.63us from 3.28us. BUG=skia: Committed: https://skia.googlesource.com/skia/+/fb502f072f5a32ad122bfc2717fe56a3c22e482e

Patch Set 1 #

Patch Set 2 : minor fix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+7 lines, -9 lines) Patch
M include/core/SkRect.h View 1 1 chunk +7 lines, -9 lines 0 comments Download

Messages

Total messages: 10 (3 generated)
qiankun
Hi reed, I found the previous SkRect::sort() implementation is faster as the data on my ...
6 years, 1 month ago (2014-11-03 08:51:26 UTC) #2
reed1
interesting -- this is what the old version did (but in the .cpp not the ...
6 years, 1 month ago (2014-11-03 22:02:03 UTC) #4
mtklein
On 2014/11/03 22:02:03, reed1 wrote: > interesting -- this is what the old version did ...
6 years, 1 month ago (2014-11-03 22:16:07 UTC) #5
reed1
lgtm
6 years, 1 month ago (2014-11-03 22:24:14 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/695443005/20001
6 years, 1 month ago (2014-11-03 22:25:21 UTC) #8
commit-bot: I haz the power
Committed patchset #2 (id:20001) as fb502f072f5a32ad122bfc2717fe56a3c22e482e
6 years, 1 month ago (2014-11-03 22:34:34 UTC) #9
qiankun
6 years, 1 month ago (2014-11-04 07:28:30 UTC) #10
Message was sent while issue was closed.
On 2014/11/03 22:02:03, reed1 wrote:
> interesting -- this is what the old version did (but in the .cpp not the
> header). I agree it is faster (on my macbook).
> 
> mtklein -- any thoughts?
> qiankun -- have you timed this on android/arm?

This data is 37.7µs vs. 55.8µs on Nexus 4.

Powered by Google App Engine
This is Rietveld 408576698