golang-freetype/freetype/truetype
Nigel Tao 6baa5f0a46 freetype: 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.

R=rsc, r
CC=golang-dev, jra
http://codereview.appspot.com/6304077
2012-06-16 12:19:07 +10:00
..
glyph.go freetype: optimize []byte to uint16/uint32 conversions. 2012-06-16 12:19:07 +10:00
truetype_test.go freetype: optimize []byte to uint16/uint32 conversions. 2012-06-16 12:19:07 +10:00
truetype.go freetype: optimize []byte to uint16/uint32 conversions. 2012-06-16 12:19:07 +10:00