appstream: Monitor appstream and appdata directories rather than files
Use the new XB_BUILDER_SOURCE_FLAG_WATCH_DIRECTORY
API from
https://github.com/hughsie/libxmlb/pull/55 to only monitor appstream and
appdata directories, rather than all O(N) files within them. This
shouldn’t change functionality, but should reduce the number of file
monitors in use by an order of magnitude.
In particular, it drops around 200KB of heap memory usage directly associated with those file monitors, and potentially a little more that’s indirectly associated (signal connections and closures, main context sources, etc.).
Signed-off-by: Philip Withnall withnall@endlessm.com