diff options
author | Gerald Combs <gerald@wireshark.org> | 2015-08-26 17:14:39 -0700 |
---|---|---|
committer | Gerald Combs <gerald@wireshark.org> | 2015-08-28 02:54:20 +0000 |
commit | f19a173a8409ff62a77939e66b4a97d26cc5c149 (patch) | |
tree | 9530c97f8ebafd0d0a791cf1f08aa5f4e90fcdb7 /ui/qt/main_window.cpp | |
parent | 01fb470acd71528bede068727b7614ae6f534c4f (diff) | |
download | wireshark-f19a173a8409ff62a77939e66b4a97d26cc5c149.tar.gz |
Speed up column sorting.
The GTK+ UI sequentially dissects and caches column strings for all rows
before sorting a column. Do the same in the Qt UI, which can improve
performance considerably.
Don't colorize packets when sorting in the Qt UI unless it's necessary.
When sorting in the Qt UI, let the user cancel the initial packet
dissection. Note that we'll need to replace std::sort in order to
cancel out of sorting.
Use a pre-allocated and pre-compiled GRexex when we prime columns. Note
that we probably shouldn't parse a regular expression there.
Cache the last result of proto_registrar_get_byname.
Note performance hot spots elsewhere in the code.
To do:
GeoIP in packet-ip.c is pretty slow.
Bug: 11467
Change-Id: Ib34038fee08ef0319261faeffc4eca01e52f4bd3
Reviewed-on: https://code.wireshark.org/review/10275
Petri-Dish: Gerald Combs <gerald@wireshark.org>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Gerald Combs <gerald@wireshark.org>
Diffstat (limited to 'ui/qt/main_window.cpp')
-rw-r--r-- | ui/qt/main_window.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/ui/qt/main_window.cpp b/ui/qt/main_window.cpp index 905cffe833..42ffbd377e 100644 --- a/ui/qt/main_window.cpp +++ b/ui/qt/main_window.cpp @@ -503,6 +503,12 @@ MainWindow::MainWindow(QWidget *parent) : main_ui_->statusBar, SLOT(pushBusyStatus(QString))); connect(packet_list_->packetListModel(), SIGNAL(popBusyStatus()), main_ui_->statusBar, SLOT(popBusyStatus())); + connect(packet_list_->packetListModel(), SIGNAL(pushProgressStatus(QString,bool,bool,gboolean*)), + main_ui_->statusBar, SLOT(pushProgressStatus(QString,bool,bool,gboolean*))); + connect(packet_list_->packetListModel(), SIGNAL(updateProgressStatus(int)), + main_ui_->statusBar, SLOT(updateProgressStatus(int))); + connect(packet_list_->packetListModel(), SIGNAL(popProgressStatus()), + main_ui_->statusBar, SLOT(popProgressStatus())); connect(proto_tree_, SIGNAL(protoItemSelected(const QString&)), main_ui_->statusBar, SLOT(pushFieldStatus(const QString&))); |