Wireshark-dev: [Wireshark-dev] New experimental feature: GTK2 based packet list - a flaw

From: "Anders Broman" <anders.broman@xxxxxxxxxxxx>
Date: Thu, 2 Jul 2009 15:30:56 +0200
Title: New experimental feature: GTK2 based packet list - a flaw

Hi,
As I understand the code internally all 59 defined columns are "allocated" in the treeview and data is written/retrieved

Using the columns enum, this causes a problem if more than one custom column is added as data will be overwritten with the latest added

Column data and I guess it waists memory. I think this should be changed to only allocate the number of used columns.

Is it a design goal to be able to add columns "on the fly" without restarting WS? Is that possible in the treeview? If not a possible solution

Could be to allocate a number of "extra columns" (5?) to the number of columns set previously in preferences.

Some column data might take less memory to store as numbers and adding a special renderer (Time, IPv4 address...).

Regards
Anders