Ethereal-dev: [Ethereal-dev] Re: rev 15660: /trunk/plugins/asn1/: packet-asn1.c /trunk/epan/:

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: ronnie sahlberg <ronniesahlberg@xxxxxxxxx>
Date: Fri, 2 Sep 2005 03:11:30 -0400
On 9/2/05, Guy Harris <gharris@xxxxxxxxx> wrote:
> ronnie sahlberg wrote:
> 
> > One remaining important structure we still use from glib is the
> > GHashTable that I very strongly belive has performance issues,
> 
> ...and uses g_malloc(), which helpfully aborts the program if you run 
> out of memory.  The same applies to other glib data structures.
> 
> Perhaps an allocator that throws an exception when we run out of memory, 
> so that we just stop the operation (and, if it's a read, perhaps just 
> give up on reading the file and release memory, so that we can display 
> an error dialogue).
>

If/when most memory allocations are done through emem that would be
trivial to implement.