diff options
author | Ronnie Sahlberg <ronnie_sahlberg@ozemail.com.au> | 2005-04-07 12:00:03 +0000 |
---|---|---|
committer | Ronnie Sahlberg <ronnie_sahlberg@ozemail.com.au> | 2005-04-07 12:00:03 +0000 |
commit | df98534657baeb4e3728f051e3a355420bc538cb (patch) | |
tree | 96f992e797d8aae723a1ec998324ba8d48c0bb4d /proto_hier_stats.c | |
parent | 412e592a120960b79086140706c07b953c3e7456 (diff) | |
download | wireshark-df98534657baeb4e3728f051e3a355420bc538cb.tar.gz wireshark-df98534657baeb4e3728f051e3a355420bc538cb.tar.bz2 wireshark-df98534657baeb4e3728f051e3a355420bc538cb.zip |
From Didier:
optimization for COLUMNS to make ethereal faster when filtering
optimization to make the slow find_protocol_by_id() fast.
(idea from Didier, implementation modified by me to be less intrusive)
svn path=/trunk/; revision=14026
Diffstat (limited to 'proto_hier_stats.c')
-rw-r--r-- | proto_hier_stats.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/proto_hier_stats.c b/proto_hier_stats.c index 8974e52ac1..995a5c30f7 100644 --- a/proto_hier_stats.c +++ b/proto_hier_stats.c @@ -145,7 +145,7 @@ process_frame(frame_data *frame, column_info *cinfo, ph_stats_t* ps) return FALSE; /* failure */ } - /* Dissect the frame */ + /* Dissect the frame tree not visible */ edt = epan_dissect_new(TRUE, FALSE); epan_dissect_run(edt, &phdr, pd, frame, cinfo); @@ -253,8 +253,9 @@ ph_stats_new(void) ps->first_time = cur_time; ps->last_time = cur_time; } - - if (!process_frame(frame, &cfile.cinfo, ps)) { + + /* we don't care about colinfo */ + if (!process_frame(frame, NULL, ps)) { /* * Give up, and set "stop_flag" so we * just abort rather than popping up |