I'm a bit obsessed with lightness and optimization. I like software that does its job with as little as it can get away with: fewer processes, fewer wake-ups, fewer bytes. It's the same reason one of my three wikis fits in a single 38 KB HTML file.1
Part of it is something I believe. I don't put much faith in incompatible hardware and software. Incompatibility exists, of course, but most of what gets called incompatible is really a poorly optimized system.
Tonight that turned into work on runv.club, and I wrote about it on the club's news page, in Light on purpose. The club runs a lot on one machine, from shells and websites to Gemini, Gopher, IRC, a wiki and a radio, and it was already mostly idle. What was still awake for no reason was a set of small jobs on timers that rebuilt blogs, profiles, the wiki and other pages every few minutes, whether anything had changed or not.
Now nothing runs until something changes. Linux can tell a program the moment a folder changes, through inotify, and systemd can start a job when that happens. Each member's blog, gallery and profile has a watcher now, and so do the wiki and the git repositories, so a change shows up in seconds instead of minutes and the machine stays quiet the rest of the time. A few smaller fixes went in too, like a build that asked Python the same question once per file and now asks it only once.2
The units that do all this are small enough to read over a coffee, and they're in the runv.club repository.
Notes
-
That's Nyx Wiki 3, from Three ways to build the same wiki. ↩
-
That build spent two and a half seconds of every run on that one question. Now the whole build takes under a second. ↩