quickfixgo / quickfix

The Go FIX Protocol Library :rocket:
https://www.quickfixgo.org/
Other
735 stars 288 forks source link

Use bytes.Count to count the number of message fields #655

Closed sylr closed 1 month ago

sylr commented 1 month ago

Not a huge improvement but an improvement nonetheless.

goos: darwin
goarch: arm64
pkg: github.com/quickfixgo/quickfix
               │    old3     │                new3                │
               │   sec/op    │   sec/op     vs base               │
ParseMessage-8   680.6n ± 0%   650.0n ± 0%  -4.49% (p=0.000 n=20)