DescriptionStay in floats as much as possible in SkTileGrid, particularly in insert.
SkTileGrid::insert() is about 15% of recording time before
this CL, which reduces it to ~10%. Next steps are looking
into some of the TODOs I've left myself, and vectorizing
the math.
Most of the win here comes from converting integer
divisions into float multiplies.
BUG=skia:1021
Committed: https://skia.googlesource.com/skia/+/65be97d1a1eb5923b078bd1e7ec1e7da6e6427e2
Patch Set 1 #Patch Set 2 : rebase #Patch Set 3 : note #Patch Set 4 : rebase #Patch Set 5 : extract userToGrid #Patch Set 6 : fix ordering here too #Patch Set 7 : rebase #Patch Set 8 : start on a new approach #Patch Set 9 : start reverting tests #Patch Set 10 : tests passing #Patch Set 11 : explain sort #Patch Set 12 : only sort on query, with TODO to clean up #Patch Set 13 : explain better #Messages
Total messages: 11 (2 generated)
|