aboutsummaryrefslogtreecommitdiffstats
path: root/epan/wmem
diff options
context:
space:
mode:
authorAndersBroman <anders.broman@ericsson.com>2014-03-31 13:44:05 +0200
committerAnders Broman <a.broman58@gmail.com>2014-03-31 15:20:08 +0000
commit6a3394eefa14e40b5b6310395117e9d4adfe6f8f (patch)
treea46cafe97298e9ae00dd79299d856adc6f66a9a6 /epan/wmem
parent280c2958f2a03bdc16b99851230c935cdd65e91b (diff)
Inlining wmem_strbuf_grow seems to give better performance.
Change-Id: I80f3d42fb01461af97984b463a6e8b8217eed552 Reviewed-on: https://code.wireshark.org/review/888 Reviewed-by: Evan Huus <eapache@gmail.com> Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'epan/wmem')
-rw-r--r--epan/wmem/wmem_strbuf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/wmem/wmem_strbuf.c b/epan/wmem/wmem_strbuf.c
index 5e973464e9..41f13a9aff 100644
--- a/epan/wmem/wmem_strbuf.c
+++ b/epan/wmem/wmem_strbuf.c
@@ -101,7 +101,7 @@ wmem_strbuf_new(wmem_allocator_t *allocator, const gchar *str)
return strbuf;
}
-static void
+static inline void
wmem_strbuf_grow(wmem_strbuf_t *strbuf, const gsize to_add)
{
gsize new_alloc_len, new_len;