reduce unnecessary re-rendering in the main window
The main window called gtk_tree_model_filter_refilter() once per second to refresh the torrent list's filtering. This is not an efficient approach: gtk_tree_model_filter_refilter() emits a "row changed" event for every row, causing unnecessary re-rendering.
I've removed the call to gtk_tree_model_filter_refilter() and expanded the model to include all the fields necessary for filtering. That way we only fire "row changed" events for rows that actually change.
However it will *not* help the related "CPU spikes to 100% on scrolling" ticket at https://trac.transmissionbt.com/ticket/3887 because rendering paused torrents is still exceptionally expensive in the murrine theme.
notes for upstream commit r11740:
reduce unnecessary re-rendering in the main window
The main window called gtk_tree_ model_filter_ refilter( ) once per second to refresh the torrent list's filtering. This is not an efficient approach: gtk_tree_ model_filter_ refilter( ) emits a "row changed" event for every row, causing unnecessary re-rendering.
I've removed the call to gtk_tree_ model_filter_ refilter( ) and expanded the model to include all the fields necessary for filtering. That way we only fire "row changed" events for rows that actually change.
By reducing the number of renders in steady state, this might ameliorate https:/ /bugs.launchpad .net/ubuntu/ +source/ transmission/ +bug/655024
However it will *not* help the related "CPU spikes to 100% on scrolling" ticket at https:/ /trac.transmiss ionbt.com/ ticket/ 3887 because rendering paused torrents is still exceptionally expensive in the murrine theme.