Wireshark-bugs: [Wireshark-bugs] [Bug 1757] New: main_cf_cb_live_capture_update_continue slows d
Date: Wed, 22 Aug 2007 09:39:04 +0000 (GMT)
http://bugs.wireshark.org/bugzilla/show_bug.cgi?id=1757

           Summary: main_cf_cb_live_capture_update_continue slows down live
                    captures
           Product: Wireshark
           Version: 0.99.6
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: Major
          Priority: Medium
         Component: Wireshark
        AssignedTo: wireshark-bugs@xxxxxxxxxxxxx
        ReportedBy: j.pedro.fonseca@xxxxxxxxxxxxxxx
                CC: j.pedro.fonseca@xxxxxxxxxxxxxxx, ferrao@xxxxxxxxxxxxxxx


Build Information:
Compiled with GLib 2.12.13, with libpcap 0.9-PRE-CVS, with libz 1.2.3.3, with
libpcre 4.5, without Net-SNMP, without ADNS, without Lua, without GnuTLS,
without Gcrypt, without Kerberos.

Running on Linux 2.6.20.11, with libpcap version 0.9-PRE-CVS.

Built using gcc 3.3.6 (Debian 1:3.3.6-15).

--
During live captures, the main_cf_cb_live_capture_update_continue callback is
periodically called (every second) to update statistics in the status bar. The
status bar message includes the interface name, which is retrieved with a call
to "get_interface_descriptive_name(capture_opts->iface)".

Calling this function repeatedly during captures ultimately slows it down,
because the implementation performs several tasks that can take some time.
Also, because the interface description doesn't change, it should be stored in
a variable for later reference, avoiding these extra calls.


-- 
Configure bugmail: http://bugs.wireshark.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.