Skip to content

appstream: Use XB_BUILDER_COMPILE_FLAG_NO_NODE_CACHE everywhere

Philip Withnall requested to merge pwithnall/gnome-software:silo-cache into master

This saves 1.8MB of heap memory of XbNode instances which were rarely used (they were inserted into the cache, hit a few times, and then the processing code moved on and they mostly weren’t accessed again). It also saves the associated locking overhead.

This depends on the new flag being introduced in libxmlb 0.2.0 — see https://github.com/hughsie/libxmlb/pull/57.

The use of this flag means gnome-software can’t use xb_node_{get,set}_data(), but it didn’t do anyway.

Signed-off-by: Philip Withnall withnall@endlessm.com

Merge request reports