Stuart Bowman on Nostr: The best performance optimization I've come up with for Satellite is to "lazy render" ...
The best performance optimization I've come up with for Satellite is to "lazy render" items in long lists. The app listens for the position of each element and only starts to render it when it gets close to coming onscreen. The helps by reducing the number of images that have to get loaded at once, but I suppose the root cause is a lot unoptimized images getting uploaded in the first place. If we wanted to go nuclear on this problem we could set up a server that acts as a proxy to generate and cache thumbnails.
Published at
2023-04-14 22:53:27Event JSON
{
"id": "5f6783892d0d5f09c73d5412c074514a7930f33d1ea270dd836eb7eaf62b8262",
"pubkey": "ff27d01cb1e56fb58580306c7ba76bb037bf211c5b573c56e4e70ca858755af0",
"created_at": 1681512807,
"kind": 1,
"tags": [
[
"e",
"be76ea42a90a4eabfc1c733f79e8f11810d6c2153970fea99cacad6d92b12e60",
"",
"reply"
],
[
"p",
"d0a1ffb8761b974cec4a3be8cbcb2e96a7090dcf465ffeac839aa4ca20c9a59e"
]
],
"content": "The best performance optimization I've come up with for Satellite is to \"lazy render\" items in long lists. The app listens for the position of each element and only starts to render it when it gets close to coming onscreen. The helps by reducing the number of images that have to get loaded at once, but I suppose the root cause is a lot unoptimized images getting uploaded in the first place. If we wanted to go nuclear on this problem we could set up a server that acts as a proxy to generate and cache thumbnails.",
"sig": "dd645fada2bd92a3081fb554f840f1a694d588805afbf9b4444fa9a6479bc8dc58680b2e2202d266fb04486ce05ba89e72680e4a43b88122a6cca3e6c8b8a4fb"
}