Colin on Nostr: Turns out that by pre-serializing the JSON data for every possible package the user ...
Published at
2023-08-21 01:37:08Event JSON
{
"id": "56b988cc9409045bc3337940f2505c6be94f9c051fbc37e1474ba58507a0430d",
"pubkey": "5692c32f4f13c4bcfe0bec0c4b5ab9090655b0f966e4eb62660f2dd598eb1c17",
"created_at": 1692581828,
"kind": 1,
"tags": [
[
"t",
"commonlisp"
],
[
"proxy",
"https://emacs.ch/users/fosskers/statuses/110925042691802579",
"activitypub"
]
],
"content": "Turns out that by pre-serializing the JSON data for every possible package the user could request, I was able to double my server's throughput:\n\nhttps://git.sr.ht/~fosskers/faur/commit/colin/common-lisp\n\n#commonlisp",
"sig": "38f2b3e6cb6711ca556e19a4a4b978153689b4887018e13fb171291e61d0e1d4a40a4763f6437d09502148872dd903bd06ea9af64ba2cccccdfed5c0c7b715ae"
}