Descriptionfreetype: optimize []byte to uint16/uint32 conversions.
Thanks to Jeff R. Allen <jra@nella.org> for the conversation that
led to this change.
benchmark old ns/op new ns/op delta
BenchmarkDrawString 21168440 20143860 -4.84%
The number of mallocs per iteration is unchanged.
Patch Set 1 #Patch Set 2 : diff -r 3eb9f09ecbb1 https://code.google.com/p/freetype-go #Patch Set 3 : diff -r 3eb9f09ecbb1 https://code.google.com/p/freetype-go #Patch Set 4 : diff -r 3eb9f09ecbb1 https://code.google.com/p/freetype-go #
MessagesTotal messages: 3
|