diff options
author | Richard Hughes <richard@hughsie.com> | 2014-03-24 12:15:49 +0000 |
---|---|---|
committer | Richard Hughes <richard@hughsie.com> | 2014-03-24 12:18:06 +0000 |
commit | 0e31062f43c22a119966aecac047cb90cb3bfcd9 (patch) | |
tree | 9ab1f1b813cea424088c7378834e597a61459e88 /libappstream-glib/as-node-private.h | |
parent | 9399965ae26c0314071d34dc823c511503bd2b7c (diff) | |
download | appstream-glib-0e31062f43c22a119966aecac047cb90cb3bfcd9.tar.gz |
Add as_node_take_attribute() to reduce allocations during parse
This speeds up parsing by a couple of ms, but reduces the memory footprint by a
few kb.
Diffstat (limited to 'libappstream-glib/as-node-private.h')
-rw-r--r-- | libappstream-glib/as-node-private.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libappstream-glib/as-node-private.h b/libappstream-glib/as-node-private.h index 3947a26..71a01a1 100644 --- a/libappstream-glib/as-node-private.h +++ b/libappstream-glib/as-node-private.h @@ -31,6 +31,8 @@ G_BEGIN_DECLS gchar *as_node_take_data (const GNode *node); +gchar *as_node_take_attribute (const GNode *node, + const gchar *key); void as_node_set_data (GNode *node, const gchar *cdata, gssize cdata_len, |