mleku on Nostr: note that the crucial element that made it so much faster is it eliminates all use of ...
note that the crucial element that made it so much faster is it eliminates all use of #golang strings, which are immutable and thus generate tons of memory garbage
i would eventually want to eliminate these things everywhere, there is several other places where they are used as well, in the bech32 encodings and a couple other places too
probably the elliptic curve library is a garbage generator as well
Published at
2024-06-28 11:03:59Event JSON
{
"id": "ac7d21ea87f45763dd9bef87b4909f387a56a537295362a32e4ef9d7d1327747",
"pubkey": "4c800257a588a82849d049817c2bdaad984b25a45ad9f6dad66e47d3b47e3b2f",
"created_at": 1719565439,
"kind": 1,
"tags": [
[
"t",
"golang"
],
[
"e",
"f6dba1798b45756e9eca05816941d60a22a9f6e34cabdd123cecf3fbee357f03",
"wss://nostr.land/",
"root"
],
[
"e",
"f6dba1798b45756e9eca05816941d60a22a9f6e34cabdd123cecf3fbee357f03",
"wss://nostr.land/",
"reply"
]
],
"content": "note that the crucial element that made it so much faster is it eliminates all use of #golang strings, which are immutable and thus generate tons of memory garbage\n\ni would eventually want to eliminate these things everywhere, there is several other places where they are used as well, in the bech32 encodings and a couple other places too\n\nprobably the elliptic curve library is a garbage generator as well",
"sig": "eaf8abd74043c7cd0e246ed42892f638781bd9710620ecd69503bb0f7c25b38cffa2176ebb8307928dea87b1adc62ce5a9a13496e31514ee05a7a9a87f61d469"
}