DescriptionRearrange SkRecord with small N in mind
This rearranges the record pointers and types so they can go in a single array, then preallocates some space for them and for the SkVarAlloc.
picture_overhead_draw bench drops from ~1000ns to 500-600ns, with no effect on picture_overhead_nodraw.
I don't see any significant effect on large picture recording times from our .skps.
BUG=chromium:470553
Committed: https://skia.googlesource.com/skia/+/e2dd9408cd711777afaa9410427fb0d761ab004a
Committed: https://skia.googlesource.com/skia/+/29b1afc169576cf5e708e46b74313b5666e66249
Patch Set 1 #Patch Set 2 : inline allocations #Patch Set 3 : reverts #Patch Set 4 : tweaks #Patch Set 5 : nits #
Total comments: 4
Patch Set 6 : small or fast, pick one #Patch Set 7 : names etc #Patch Set 8 : manual packing #Patch Set 9 : 32-bit fix #
Messages
Total messages: 28 (12 generated)
|