Commit 7d8f420
committed
perf(decode): inline hasNilCode for byte-slice reader path
When decoding from a byte slice (Unmarshal path), peek directly at
the underlying data instead of going through two interface method
calls (ReadByte + UnreadByte). This saves ~3-7 ns per struct pointer
field decode.1 parent 82f46cf commit 7d8f420
1 file changed
Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
624 | 624 | | |
625 | 625 | | |
626 | 626 | | |
| 627 | + | |
| 628 | + | |
| 629 | + | |
| 630 | + | |
| 631 | + | |
627 | 632 | | |
628 | 633 | | |
629 | 634 | | |
| |||
0 commit comments