summaryrefslogtreecommitdiff
path: root/ui/recent.c
diff options
context:
space:
mode:
authorEvan Huus <eapache@gmail.com>2013-07-27 22:27:28 +0000
committerEvan Huus <eapache@gmail.com>2013-07-27 22:27:28 +0000
commit3663498a8b39f4159ca90eaee2fbc915df27712a (patch)
tree198ec7c93851e76795031ea4f40180494392d147 /ui/recent.c
parenta076d6332e4b890248ee79fca592e380693a2c51 (diff)
downloadwireshark-3663498a8b39f4159ca90eaee2fbc915df27712a.tar.gz
Redesign of the wmem block allocator.
What was becoming apparent as more dissectors started using wmem was that the old block allocator design had issues with memory fragmentation. This keeps the same underlying memory layout, but completely changes how free blocks are kept. It runs about 3% slower in my tests (still an order of magnitude faster than g_malloc) but uses about 1/3 the memory. I suspect some simple optimizations could reclaim that 3% as well - the design is fast, but I did not code particularly for speed. Thoroughly tested with the existing test suite (which caught half a dozen bugs in my first draft) so it should actually work! svn path=/trunk/; revision=50955
Diffstat (limited to 'ui/recent.c')
0 files changed, 0 insertions, 0 deletions