Wireshark-dev: [Wireshark-dev] New classes of possible memory optimizations
From: Evan Huus <eapache@xxxxxxxxx>
Date: Fri, 15 Feb 2013 13:34:10 -0500
It is now possible with wmem to free individual allocated chunks (this
does not affect the bulk-free that occurs after each packet or file).
I don't expect it to be used much directly, however if there are large
buffers that are needed only briefly, freeing them immediately
afterwards could do good things for Wireshark's memory usage. If an
exception is thrown and the free call is never hit, they will still be
cleaned up after the packet or file is closed as usual.

Also note that wmem supports realloc as well, so things like emem's
strbuf now have a much simpler and more efficient way to grow (or
shrink) when needed.

Cheers,
Evan