mleku on Nostr: i may even have to delve into this, but i have a 2d array (comparison matrix) in my ...
i may even have to delve into this, but i have a 2d array (comparison matrix) in my project and i have issues to deal with due to needing to decode the fields of each element, and i learned about zigzag iteration for this sort of case, and there is also something eles i may use, pools, to cache decodes as it iterates, zigzag plus pools should be both faster and less memory utilization.
Published at
2025-06-01 21:14:32Event JSON
{
"id": "2fa613d8d56c41d6c9e8fdd6787eedaa7024619ee1598c99bb134d56cc0dfe8f",
"pubkey": "4c800257a588a82849d049817c2bdaad984b25a45ad9f6dad66e47d3b47e3b2f",
"created_at": 1748812472,
"kind": 1,
"tags": [
[
"e",
"af15a6100fa9077a9b57a201aaaf5f8d7e3796f4f74fd406a29462300afe0ab8",
"wss://theforest.nostr1.com/",
"root",
"7cc328a08ddb2afdf9f9be77beff4c83489ff979721827d628a542f32a247c0e"
],
[
"e",
"269f48adcccdb8fce33d565eb7d05cd225d9eca36ebc9b3434a4e090ab62ea26",
"wss://nostr21.com/",
"reply",
"4c800257a588a82849d049817c2bdaad984b25a45ad9f6dad66e47d3b47e3b2f"
],
[
"p",
"7cc328a08ddb2afdf9f9be77beff4c83489ff979721827d628a542f32a247c0e"
]
],
"content": "i may even have to delve into this, but i have a 2d array (comparison matrix) in my project and i have issues to deal with due to needing to decode the fields of each element, and i learned about zigzag iteration for this sort of case, and there is also something eles i may use, pools, to cache decodes as it iterates, zigzag plus pools should be both faster and less memory utilization.",
"sig": "76d6a12f261e6cb41ecec0da1ce48d2147e1e2eeaf618db9425c39a9a47324f6a6d5a7aa600fc172ab28522caecb1fbe35937a6bed0284000977ee74d2b00e6b"
}