Ethereal-dev: Re: [Ethereal-dev] compare_proto_id taking up 20% of Ethereal's time

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

From: Guy Harris <guy@xxxxxxxxxxxx>
Date: Sat, 15 Nov 2003 14:25:36 -0800
On Sat, Nov 15, 2003 at 03:00:09PM -0800, Richard Sharpe wrote:
> So, it has to be the number of times it is called. It is passed to 
> g_list_find_custom as a function for doing comparisons. This is probably 
> being kept as a simple linked list that is scanned linearly and maybe we 
> need a hash or some better function.

Or need to see if we can avoid doing the lookups in question at all.