summaryrefslogtreecommitdiff
path: root/epan/epan.c
diff options
context:
space:
mode:
authorJakub Zawadzki <darkjames@darkjames.pl>2014-04-29 08:57:40 +0200
committerAnders Broman <a.broman58@gmail.com>2014-05-02 21:07:07 +0000
commit5f239013e744de640cd37462e067a495912b9e65 (patch)
tree7cce61afb931680c1b8d606b98c9082ace3a4de3 /epan/epan.c
parentfa84054dc7c8a381d9665ddb2c6d22e0e96094b1 (diff)
downloadwireshark-5f239013e744de640cd37462e067a495912b9e65.tar.gz
wmem: add new simple block allocator, use it in packet-scope.
For packet-scope allocation, there's no need to support realloc(), free() cause memory will be garbage collected after packet dissection. (and this allocator is much faster than full block allocator). Change-Id: I73fdf708c3077f48f55bdcc71f4fa859e4ac2335 Reviewed-on: https://code.wireshark.org/review/1428 Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'epan/epan.c')
-rw-r--r--epan/epan.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/epan.c b/epan/epan.c
index f24a341fd9..30b5dd94a8 100644
--- a/epan/epan.c
+++ b/epan/epan.c
@@ -261,7 +261,7 @@ epan_dissect_init(epan_dissect_t *edt, epan_t *session, const gboolean create_pr
pinfo_pool_cache = NULL;
}
else {
- edt->pi.pool = wmem_allocator_new(WMEM_ALLOCATOR_BLOCK);
+ edt->pi.pool = wmem_allocator_new(WMEM_ALLOCATOR_BLOCK_FAST);
}
if (create_proto_tree) {