Alex Gleason on Nostr: I was able to reduce the CPU usage of Ditto Relay 2x just by timeboxing expiration ...
I was able to reduce the CPU usage of Ditto Relay 2x just by timeboxing expiration tags into 60s buckets instead of 1s. Literally doubled the performance just from this.
Published at
2026-09-02 14:29:42 UTCEvent JSON
{
"id": "7d9c7a3172555a8ee2a0277f7eab3e516e66cc70a26b7c085da03e9076ea3234",
"pubkey": "0461fcbecc4c3374439932d6b8f11269ccdb7cc973ad7a50ae362db135a474dd",
"created_at": 1788359382,
"kind": 1,
"tags": [
[
"client",
"Ditto",
"31990:781a1527055f74c1f70230f10384609b34548f8ab6a0a6caa74025827f9fdae5:ditto"
]
],
"content": "I was able to reduce the CPU usage of Ditto Relay 2x just by timeboxing expiration tags into 60s buckets instead of 1s. Literally doubled the performance just from this.",
"sig": "ecd9c66e6ba3ff2256554d0834edf4eb77c0d052eb3eba371f703f936a05817a286f93760e72799e94a7d703d3c39dee3bca919d3f167aff812d0f5dae4ded49"
}