Enjoy the 50x speedup
Rewrite in Python, mainly because the bash
code was starting to get too large to work with comfortably, and Python's way more maintainable.
On top of that, the original bash
version was slow, because there were a lot of cases where it was running lima nerdctl XYZ | jq
to parse out information about containers and images, and it wasn't caching the output.
The python version caches the image and container information, and is much faster - 0.355 seconds on my MBP, the shell version takes 17.332 seconds.