diff options
author | Richard Hughes <richard@hughsie.com> | 2015-02-02 11:36:29 +0000 |
---|---|---|
committer | Richard Hughes <richard@hughsie.com> | 2015-02-02 11:36:29 +0000 |
commit | 25b97c77b2d27f9c86d1a0bb6b731a327a1906a6 (patch) | |
tree | 589d7efb5515ccb682c3116d27410136b6f4baac /libappstream-builder/asb-context.c | |
parent | fbc9a6c77311a9aaf6cecdd44792d2d33e113e2d (diff) | |
download | appstream-glib-25b97c77b2d27f9c86d1a0bb6b731a327a1906a6.tar.gz |
Only open the package when required
This reduces the peak RSS by about 15% typically.
Diffstat (limited to 'libappstream-builder/asb-context.c')
-rw-r--r-- | libappstream-builder/asb-context.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libappstream-builder/asb-context.c b/libappstream-builder/asb-context.c index 69f920f..f6ea8b4 100644 --- a/libappstream-builder/asb-context.c +++ b/libappstream-builder/asb-context.c @@ -567,10 +567,9 @@ asb_context_add_filename (AsbContext *ctx, const gchar *filename, GError **error filename); return FALSE; } - if (!asb_package_open (pkg, filename, error)) - return FALSE; /* add to array */ + asb_package_set_filename (pkg, filename); asb_context_add_package (ctx, pkg); return TRUE; } |