DescriptionAvoid a loop in writeString and writePad by zeroing padding first.
Also add a benchmark to time the new improved writeString. Before
my change the bench took ~1.23ms and afterwards it takes ~.95ms.
Add some testing to ensure that writePad works properly.
TEST=Writer32Test, WriterBench
Committed: https://code.google.com/p/skia/source/detail?r=4742
Patch Set 1 #
Total comments: 2
Patch Set 2 : Improved some comments, modified WriterBench to cache strLen result. #
MessagesTotal messages: 3
|