now with the pubkey encoding as binary... not as dramatic an improvement it seems
oh well, anyway, it's done now, both id and pubkey fields now do not need any hex encode/decode so that's still a good thing
last is the signature... this will be another 5-10 ops more i figure, then i'm gonna get out the profiler
goos: linux
goarch: amd64
pkg: mleku.net/nostrbench
cpu: AMD Ryzen 5 PRO 4650G with Radeon Graphics
BenchmarkBinaryEncoding/event2.MarshalJSON-12 14 72883244 ns/op
BenchmarkBinaryEncoding/event2.EventToBinary-12 166 7090886 ns/op
BenchmarkBinaryEncoding/easyjson.Marshal-12 67 18620409 ns/op
BenchmarkBinaryEncoding/gob.Encode-12 19 62998941 ns/op
BenchmarkBinaryEncoding/binary.Marshal-12 10 110464204 ns/op
BenchmarkBinaryDecoding/event2.UnmarshalJSON-12 13 87762713 ns/op
BenchmarkBinaryDecoding/event2.BinaryToEvent-12 100 12388974 ns/op
BenchmarkBinaryDecoding/easyjson.Unmarshal-12 57 23463646 ns/op
BenchmarkBinaryDecoding/gob.Decode-12 5 226411371 ns/op
BenchmarkBinaryDecoding/binary.Unmarshal-12 123 8851251 ns/op
#devstr #benchmark #nostr