Semisol 👨💻 on Nostr: For profile pictures you do not need the original size usually. Have a proper cache ...
For profile pictures you do not need the original size usually.
Have a proper cache with mixed LRU/LFU and store 2 sizes: the original, and a smaller optimized version that can be on-demand scaled down to whatever you need.
Published at
2024-07-20 14:39:52Event JSON
{
"id": "c97cb7b29cfcf1eff8c8c7120c7aece314c3aca55ce2682793883dfb9292ff87",
"pubkey": "52b4a076bcbbbdc3a1aefa3735816cf74993b1b8db202b01c883c58be7fad8bd",
"created_at": 1721486392,
"kind": 1,
"tags": [
[
"e",
"e5c18eb111de7a5f0bf4e1b762269751692e3472286c576f9b646b30b8d9da96",
"",
"root"
],
[
"e",
"f34a8c69a7af276f42b3a78648279301190ab0028d5542e3d383c8e41cb80bfd",
"",
"reply"
],
[
"p",
"460c25e682fda7832b52d1f22d3d22b3176d972f60dcdc3212ed8c92ef85065c"
],
[
"p",
"9a4acdeb978565e27490dca65c83e9f65745eaec1d9a0405a52d198c1489913b"
]
],
"content": "For profile pictures you do not need the original size usually.\n\nHave a proper cache with mixed LRU/LFU and store 2 sizes: the original, and a smaller optimized version that can be on-demand scaled down to whatever you need.",
"sig": "156ad859a5b67f74ee9d43040ee9dee91408d90e44cbadb979162d137f2cb01d27bd9a9ebf385037cbd86b271e82ee1b4bcf27160f28797deca52ead07dd8bd9"
}