1
0
mirror of https://github.com/json-iterator/go.git synced 2025-06-15 22:50:24 +02:00

optimize read nil/true/false

This commit is contained in:
Tao Wen
2017-01-18 23:33:40 +08:00
parent 6efc6c44ac
commit a73e48e8bf
8 changed files with 216 additions and 202 deletions

View File

@ -10,7 +10,7 @@ func (iter *Iterator) ReadObject() (ret string) {
}
switch c {
case 'n':
iter.skipUntilBreak()
iter.skipFixedBytes(3)
if iter.Error != nil {
return
}