mleku on Nostr: fiatjaf your binary coder is 193us/op versus gob 240us/op it's not that big a margin ...
fiatjaf (npub180c…h6w6) your binary coder is 193us/op versus gob 240us/op it's not that big a margin
the one in binary.go is the fastest
personally, i think if you want to squeeze it a bit faster, consider using reflect to force-re-type those integers (they will go to whatever your hardware endianism is, which is opposite to BigEndian on intel/amd)
the opportunity i see for big performance increase is moving all that hexadecimal encoding to the network side only and everything internal being bytes
the one in binary.go is the fastest
personally, i think if you want to squeeze it a bit faster, consider using reflect to force-re-type those integers (they will go to whatever your hardware endianism is, which is opposite to BigEndian on intel/amd)
the opportunity i see for big performance increase is moving all that hexadecimal encoding to the network side only and everything internal being bytes