Ethereal-dev: Re: [ethereal-dev] Fun with performance

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

From: Guy Harris <guy@xxxxxxxxxx>
Date: Wed, 25 Aug 1999 22:40:22 -0700 (PDT)
> "numtoa()" showed up at the top - all related to "snprintf()" used to,
> presumably, generate the column data.

My presumption was wrong.

Much of it does come from generating the column data, but a lot of it
comes from generating the protocol tree, which was being done while
reading the file because I stuck John McDermott's sample color filter
file in my ".ethereal" directory, and it was running a filter on each
packet.

We might want to somehow let the routines that add stuff to the protocol
tree (the actual "proto_tree_xxx" routines) know whether we plan to
*display* anything from the protocol tree or not and, if not, have them
not bother generating any text, as the filter code doesn't, I suspect,
look at the text generated for a protocol tree entry.