cfcosta on Nostr: Usually the answer is not loading them at all, or if you do, not building objects for ...
Usually the answer is not loading them at all, or if you do, not building objects for everything. Usually splitting from array of structs into struct of arrays also helps, as you can vectorize better (not sure if NEON is available for cellphones though) and have better cache locality.
Published at
2023-03-08 17:22:04Event JSON
{
"id": "55e0e25778472dfccd7977a348723cc8a6d0b96ab78c48d1adfd3a46766bc513",
"pubkey": "cfa3df9203c440a5b94b1f863094e683412ce9d422a7f99c5346e43fe2001d92",
"created_at": 1678296124,
"kind": 1,
"tags": [
[
"e",
"a0992fc66ec6e2d6e9ee888f1e28b9ef0add52fcb526512a9973c079ec28c109"
],
[
"p",
"460c25e682fda7832b52d1f22d3d22b3176d972f60dcdc3212ed8c92ef85065c"
]
],
"content": "Usually the answer is not loading them at all, or if you do, not building objects for everything. Usually splitting from array of structs into struct of arrays also helps, as you can vectorize better (not sure if NEON is available for cellphones though) and have better cache locality.",
"sig": "0f3b9df1c4a2bf8384e56c8ad7cef7d94b3f27784904dc6a55e7ccf2ce871432f10dcfbf9309b895dd07ae376949b5d5e47922acbf9517c93e36a50451bac1fd"
}