Descriptiongo.text/encoding/simplifiedchinese: implement GB18030.
GB18030 is a superset of GBK. I'm not entirely sure why GBK decoding
got 6% faster; I'm just happy that there aren't any big regressions.
benchmark old MB/s new MB/s speedup
BenchmarkGBKDecoder 116.96 123.64 1.06x
BenchmarkGBKEncoder 179.31 176.86 0.99x
Patch Set 1 #Patch Set 2 : diff -r b453ef7b57ca https://code.google.com/p/go.text #Patch Set 3 : diff -r b453ef7b57ca https://code.google.com/p/go.text #Patch Set 4 : diff -r b453ef7b57ca https://code.google.com/p/go.text #
MessagesTotal messages: 3
|