Ethereal-dev: Re: [Ethereal-dev] Re: Performance: change the time format for a file with 500 0

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

From: Richard Urwin <richard@xxxxxxxxxxxxxxx>
Date: Fri, 5 Dec 2003 18:37:11 +0000
On Friday 05 Dec 2003 5:58 pm, Guy Harris wrote:
> Jeff Morriss said:
> > (Since I imagine there's a lot of gtk-1.2 users out
> > there--sunfreeware.com still hasn't released gtk-2.x packages!--would it
> >  be worth putting in this optimization anyway?
>
> It would - *unless* we could achieve the same goal without changing the
> GTK+ code at all.
>
> It might be that the right way to do it would be to have the loop in
> file.c maintain the row number itself; I *think* it should be able to
> check the "flags.passed_dfilter" member of the frame_data structure to see
> whether a particular packet is being displayed or not, and assume that the
> Nth displayed packet has a row number of N.
>
> I tried that quickly, and it didn't look as if it set the time correctly;
> I didn't have time to look further into it.

Could you initialise the field to "unknown" and have the first thing that 
wants to know it fill it in?

-- 
Richard Urwin