Local timeline
The littleFedi caching system is configurable and adaptable. Caching helps immensely, and for this very reason, you can choose to keep the cache "warm."
By default, if enabled (which makes a lot of sense on slow hardware), the system tracks user activity over the last n minutes (15 by default). For those minutes following the last interaction with the system, the cache will be kept warm.
Does a new post arrive in the timeline? It gets processed and cached, immediately (and partially) re-processing the timeline cache. The user will see it immediately in the timeline.
On a Raspberry Pi Zero W running NetBSD on an SD card, this means dropping the timeline generation time from about 5 seconds down to roughly 0.20 seconds.
After 15 minutes of inactivity from the user, the system will stop keeping the cache warm, reducing the CPU load to nearly zero (provided you aren't doing local processing of remote images, of course - which is also configurable). Upon the user's first visit, it will take a few extra seconds (cold cache), but from that moment on, everything will be almost instantaneous.
There's also a cache for the federation activities (a boost won't cause constant reprocessing of that post), but this isn't that different from other implementations' approach.
@kaixin@snac.bsd.cafe @stefano@rpi0w.stefanomarinelli.it thanks. The only problem is the lack of time. But I can do it 👍
@paculino@tech.lgbt @@stefano@rpi0w.stefanomarinelli.it it probably is. It’s in Go so I do t see a limit. I’m using 10 as it’s the one I had installed on that device
I don't know if I'll manage to do the screen recording today or if it will end up being tomorrow, but I'm still amazed at how it runs on the Raspberry Pi Zero W with NetBSD.
Tomorrow, I will make a video of how littleFedi runs on this Raspberry Pi Zero W powered by NetBSD.
Once the caches are warm, the performance is incredible.
@lorenzo@snac.bobadin.icu senza dubbio uno dei più completi e personalizzabili che ci siano in circolazione. Piace molto anche a me.
@EnigmaRotor@bsd.cafe @stefano@rpi0w.stefanomarinelli.it true. I’ve used lists for a long time. It’s the only way to keep track of the timeline, if you start following a lot of interesting people
Having an account with a lower following number means being able to rediscover the true spirit of the Fediverse.
I like it.