Wireshark mailing list archives

New classes of possible memory optimizations


From: Evan Huus <eapache () gmail com>
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
___________________________________________________________________________
Sent via:    Wireshark-dev mailing list <wireshark-dev () wireshark org>
Archives:    http://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev
             mailto:wireshark-dev-request () wireshark org?subject=unsubscribe


Current thread: