- Better follow the XDG spec when looking up icons (https://specifications.freedesktop.org/icon-theme-spec/icon-theme-spec-latest.html#icon_lookup). This has resulted in fewer iterations per icon
- Reduce disk I/O by only accessing files when we have a size match, or when we have a potential new "minimim size diff" candidate
- Not trying to open
.pngfiles as if there were SVGs, and not trying to open.svgfiles as if they were PNGs.
First commit adds timing. This means you can get a baseline by checking out that commit.
@WhyNotHugo @tinywrkb I don't expect huge performance gains, but it'd still be interresting to see how much this gives us.