fiatjaf on Nostr: Benchmarking Nostr event parsing in JavaScript ("leaner" means a very simple and ...
Benchmarking Nostr event parsing in JavaScript ("leaner" means a very simple and performant binary format):
If these results are right (I'm not sure they are) that means JavaScript is very not-great-at-all dealing with binary things and if Nostr events were designed to be binary from the get go that would entail a massive performance loss for web, react-native and JavaScript clients of all sorts.
Published at
2023-05-12 22:11:01Event JSON
{
"id": "2678025e383e59f66672429f2cd57b4d74f472e9baa16d238980b7c2a82ccdf7",
"pubkey": "3bf0c63fcb93463407af97a5e5ee64fa883d107ef9e558472c4eb9aaaefa459d",
"created_at": 1683922261,
"kind": 1,
"tags": [
[
"client",
"coracle"
]
],
"content": "Benchmarking Nostr event parsing in JavaScript (\"leaner\" means a very simple and performant binary format):\n\nhttps://user-images.githubusercontent.com/1653275/238050896-2357981f-411f-40fc-a4f4-653013c0066a.png\nIf these results are right (I'm not sure they are) that means JavaScript is very not-great-at-all dealing with binary things and if Nostr events were designed to be binary from the get go that would entail a massive performance loss for web, react-native and JavaScript clients of all sorts.",
"sig": "47ca64c0c026bdab89d94c9d66ccaf456a1bfb95d2b17fc8ce3673f6ceae853687dcafb6d2ca421c213da443ee57c2cccad341e6dfe280159b248f45757b751e"
}