Huge thanks to our Platinum Members Endace and LiveAction,
and our Silver Member Veeam, for supporting the Wireshark Foundation and project.

Wireshark-dev: [Wireshark-dev] Interesting thing about "recent" changes in GHashTable

From: Jakub Zawadzki <darkjames-ws@xxxxxxxxxxxx>
Date: Tue, 13 Aug 2013 19:11:12 +0200
Hi,

Looking for some stuff in glib sources, I had found that glib 2.30[1] has nice feature of GHashTable.
If we pass the same pointer as key and value, memory usage is cut down by 1/3 (cool!).

Implementation of it would be a little hacky, but maybe worthy?


[1] Exactly speaking of this commit: 
    https://git.gnome.org/browse/glib/commit/glib/ghash.c?id=be991170fa99185b7cf1dbf3f9bc62c9d656a08a