diff options
author | AndersBroman <anders.broman@ericsson.com> | 2014-03-31 13:44:05 +0200 |
---|---|---|
committer | Anders Broman <a.broman58@gmail.com> | 2014-03-31 15:20:08 +0000 |
commit | 6a3394eefa14e40b5b6310395117e9d4adfe6f8f (patch) | |
tree | a46cafe97298e9ae00dd79299d856adc6f66a9a6 /epan | |
parent | 280c2958f2a03bdc16b99851230c935cdd65e91b (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')
-rw-r--r-- | epan/wmem/wmem_strbuf.c | 2 |
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; |