Home page logo
/

wireshark logo Wireshark mailing list archives

Re: Interesting thing about "recent" changes in GHashTable
From: Evan Huus <eapache () gmail com>
Date: Tue, 13 Aug 2013 13:12:18 -0400

Anyone building with a new enough glib will get this behaviour for free? So
I don't think it's worth backporting to older builds unless the memory
savings are really significant...

Very neat optimization though.


On Tue, Aug 13, 2013 at 1:11 PM, Jakub Zawadzki
<darkjames-ws () darkjames pl>wrote:

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
___________________________________________________________________________
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

___________________________________________________________________________
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

  By Date           By Thread  

Current thread:
[ Nmap | Sec Tools | Mailing Lists | Site News | About/Contact | Advertising | Privacy ]