You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Replaced reflection-based `binary.Read` with explicit `io.ReadFull` and `binary.ByteOrder` calls for primitive types. This avoids interface allocations and reflection overhead in the hot path.
Performance improvements:
- ReadUInt16: ~21% faster (38.66 ns/op vs 49.17 ns/op)
- ReadUInt32: ~18% faster (43.65 ns/op vs 53.27 ns/op)
- ReadFloat64: ~46% faster (49.13 ns/op vs 91.61 ns/op)
Tests passed.
0 commit comments