water783 on Nostr: Oh, 43k per second is already fast. I am also trying to optimize this. My current ...
Oh, 43k per second is already fast. I am also trying to optimize this. My current approach is to minimize validation actions. I will cache the event ID, and if the same ID and signature appear, the signature validation will not be performed again. Additionally, I will try to fetch the events at the most appropriate time, avoiding fetching multiple events at the same time as much as possible.
Published at
2024-06-01 16:34:33Event JSON
{
"id": "37815e1704ad3391700349e015bb5eb6d21f7667cd50dd22e31bbf90ad64ebb8",
"pubkey": "7adb520c3ac7cb6dc8253508df0ce1d975da49fefda9b5c956744a049d230ace",
"created_at": 1717252473,
"kind": 1,
"tags": [
[
"e",
"24c102670d0029c2ff206abba56bff58eb1e4a87c71ecd4b00a2fb5edf51976c",
"",
"root"
],
[
"e",
"adf331670b180e9d3d4119aee66bcd1b205107431f1b1b16aa52f006912df885",
"",
"reply"
],
[
"p",
"460c25e682fda7832b52d1f22d3d22b3176d972f60dcdc3212ed8c92ef85065c",
""
],
[
"p",
"460c25e682fda7832b52d1f22d3d22b3176d972f60dcdc3212ed8c92ef85065c",
""
]
],
"content": "Oh, 43k per second is already fast. I am also trying to optimize this. My current approach is to minimize validation actions. I will cache the event ID, and if the same ID and signature appear, the signature validation will not be performed again. Additionally, I will try to fetch the events at the most appropriate time, avoiding fetching multiple events at the same time as much as possible. ",
"sig": "f011b4ff9fdff7322c7a940e27b6827264edbabf4f0fa42d617766cf8d22a3677e5937d2661bae0a2ffdb642ca893a4ebe164b3b40aed804338c8e1f79dc0c53"
}