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

Issue 21564008: use SkTDynamicHash in picture recording (Closed)

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

Description

use SkTDynamicHash in picture recording cleaned up SkPictureFlat.h quite a bit while working on this. bench --match picture_record_ shows some improvement: compare.sh bench --match picture_record_ --repeat 100 master -> usehash N=3 p=0.001000 (corrected to 0.000333) sig? rel. speed bench y 1.0x picture_record_dictionaries y 1.5x picture_record_recurring_paint_dictionary y 3.8x picture_record_unique_paint_dictionary Overall relative speed: 1.9x bench_pictures --record is pretty much neutral: compare.sh bench_pictures -r ../skp --mode record --repeat 30 master -> usehash N=63 p=0.001000 (corrected to 0.000016) sig? rel. speed bench n 0.9x desk_pokemonwiki.skp y 0.9x desk_googlespreadsheet.skp y 0.9x tabl_pravda.skp y 1.0x desk_googlespreadsheetdashed.skp n 1.0x tabl_onlinewsj.skp n 1.0x tabl_nytimes.skp n 1.0x desk_googlehome.skp y 1.0x desk_techcrunch.skp n 1.0x tabl_slashdot.skp n 1.0x tabl_techmeme.skp n 1.0x desk_googleplus.skp n 1.0x desk_sfgate.skp n 1.0x tabl_transformice.skp n 1.0x desk_espn.skp n 1.0x desk_baidu.skp n 1.0x tabl_worldjournal.skp n 1.0x desk_chalkboard.skp n 1.0x tabl_frantzen.skp n 1.0x desk_gws.skp n 1.0x tabl_androidpolice.skp n 1.0x desk_linkedin.skp n 1.0x mobi_wikipedia.skp n 1.0x desk_wowwiki.skp n 1.0x desk_css3gradients.skp n 1.0x desk_gmailthread.skp n 1.0x desk_yahoogames.skp n 1.0x desk_facebook.skp n 1.0x desk_wordpress.skp n 1.0x tabl_vnexpress.skp n 1.0x desk_br337.skp n 1.0x tabl_engadget.skp n 1.0x tabl_theverge.skp n 1.0x desk_amazon.skp n 1.0x desk_ebay.skp n 1.0x tabl_hsfi.skp n 1.0x tabl_sahadan.skp n 1.0x desk_weather.skp n 1.0x tabl_digg.skp n 1.0x desk_youtubetvbrowse.skp n 1.0x tabl_culturalsolutions.skp n 1.0x tabl_ukwsj.skp n 1.0x desk_youtube.skp n 1.0x tabl_googlecalendar.skp y 1.0x desk_yahooanswers.skp n 1.0x desk_blogger.skp n 1.0x desk_yahoonews.skp y 1.0x desk_yahoosports.skp y 1.0x tabl_mercurynews.skp n 1.0x desk_youtubetvvideo.skp y 1.0x tabl_gspro.skp y 1.1x tabl_googleblog.skp y 1.1x tabl_cnet.skp y 1.1x tabl_mlb.skp y 1.1x tabl_cuteoverload.skp y 1.1x desk_booking.skp y 1.1x tabl_deviantart.skp y 1.1x desk_twitter.skp y 1.1x tabl_cnn.skp y 1.1x tabl_gamedeksiam.skp y 1.1x tabl_gmail.skp y 1.1x tabl_nofolo.skp y 1.1x tabl_mozilla.skp y 1.1x desk_pinterest.skp Overall relative speed: 1.0x (I'd take this to mean that the microbenches are probably drifting away from relevance.) BUG= R=reed@google.com Committed: https://code.google.com/p/skia/source/detail?r=10825

Patch Set 1 #

Patch Set 2 : reimplement findAndReplace #

Patch Set 3 : api cleanup #

Patch Set 4 : more cleanup #

Patch Set 5 : small tweak to get it to compile with gcc #

Patch Set 6 : make private #

Patch Set 7 : rework hash and fix findAndReplace #

Patch Set 8 : smaller default size #

Total comments: 4

Patch Set 9 : reed #

Patch Set 10 : hash has already been updated #

Patch Set 11 : sort include #

Patch Set 12 : sync #

Patch Set 13 : small readability changes #

Patch Set 14 : old asserts too strong #

Patch Set 15 : er, actually, the remove i removed was necessary #

Unified diffs Side-by-side diffs Delta from patch set Stats (+154 lines, -294 lines) Patch
M src/core/SkPictureFlat.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 11 chunks +142 lines, -267 lines 0 comments Download
M src/core/SkPictureFlat.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +9 lines, -19 lines 0 comments Download
M src/core/SkPictureRecord.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +2 lines, -5 lines 0 comments Download
M tests/FlatDataTest.cpp View 1 chunk +1 line, -3 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
mtklein
7 years, 4 months ago (2013-08-02 17:06:14 UTC) #1
mtklein
Ah ha. [10:33:27.728091] GM: ---- mixed_xfermodes_comparison-pipe.png: 47369 (of 505600) differing pixels, max per-channel mismatch R=73 ...
7 years, 4 months ago (2013-08-02 17:40:55 UTC) #2
tomhudson
_recurring_ is the closest of the microbenches to relevance; it'd probably be even better if ...
7 years, 4 months ago (2013-08-05 10:27:00 UTC) #3
mtklein
Okay, take a look Mike?
7 years, 4 months ago (2013-08-05 15:28:15 UTC) #4
reed1
is the previous bench for scaledimagecache the same speed w/ this change? Are you considering ...
7 years, 4 months ago (2013-08-05 15:43:28 UTC) #5
mtklein
Yep, imagecache bench doesn't change. 0.04 -> 0.04 This is the first time I noticed ...
7 years, 4 months ago (2013-08-05 18:14:46 UTC) #6
reed1
Is there any value in making this 2 CLs? 1. update dynamichash.h and scaledimagecache 2. ...
7 years, 4 months ago (2013-08-05 20:25:52 UTC) #7
mtklein
righto. this is now just the second half
7 years, 4 months ago (2013-08-05 23:11:16 UTC) #8
reed1
lgtm
7 years, 4 months ago (2013-08-07 12:08:38 UTC) #9
mtklein
7 years, 4 months ago (2013-08-20 16:48:54 UTC) #10
Message was sent while issue was closed.
Committed patchset #15 manually as r10825 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698