14 Commits

Author SHA1 Message Date
fiatjaf
7787a4fcf7 fix binary encoding stupid encoding bug that just guessed a slice length and if we were to go above it it would just panic.
for example: https://github.com/bitvora/wot-relay/issues/16
2024-09-08 11:48:12 -03:00
fiatjaf
e175e634c8 unsafe.String() on binary decoding is not safe. 2024-09-07 10:48:25 -03:00
fiatjaf
00ae611115 binary: unsafe.String() decoders. 2024-06-03 20:56:03 -03:00
fiatjaf
0e93b1173f deprecation notice on binary package. 2024-05-29 15:30:21 -03:00
fiatjaf
f8bf988882 move "normalEvents" used by binary and nson to a common place. 2024-05-29 15:26:56 -03:00
fiatjaf
a6e208ad49 improve guessed buffer size on binary. 2024-03-29 08:08:29 -03:00
fiatjaf
b5137c95eb
add gob to binary benchmarks. 2024-02-08 20:23:26 -03:00
fiatjaf
781aecc6ac
binary/hybrid Marshal() fails if event has any items over the limits. 2023-12-22 19:33:30 -03:00
fiatjaf
f1980e8b7a
expose max limits allowed for binary format event fields. 2023-12-22 18:18:44 -03:00
fiatjaf
c55b509653
binary: fix encoding, was using uint8 for tags length, which was obviously not working. 2023-12-10 21:13:34 -03:00
fiatjaf
7ecbc0a7cf
binary: move benchmarks to different test file. 2023-12-10 21:12:54 -03:00
fiatjaf
0ecffe686d
binary decoding performance gains are negligible. 2023-11-04 10:06:34 -03:00
fiatjaf
9e593c44c2
nson and binary on justfile. 2023-11-02 16:04:23 -03:00
fiatjaf
4c72e16f3e
binary encoding and some changes to nson benchmarks. 2023-11-02 15:28:01 -03:00