summaryrefslogtreecommitdiff
path: root/src/components/channellist/channellisttree.hpp
diff options
context:
space:
mode:
authorouwou <26526779+ouwou@users.noreply.github.com>2024-01-17 16:46:25 -0500
committerouwou <26526779+ouwou@users.noreply.github.com>2024-01-17 16:46:25 -0500
commit6e847ea31f6f9ddbbdd4a6d283812516dc56ef1d (patch)
tree834d564a4e41da59f3772f9e45f1f2305a18412a /src/components/channellist/channellisttree.hpp
parente9521ce7801eb2cb3b573bc85c2daeaab1003d26 (diff)
downloadabaddon-portaudio-6e847ea31f6f9ddbbdd4a6d283812516dc56ef1d.tar.gz
abaddon-portaudio-6e847ea31f6f9ddbbdd4a6d283812516dc56ef1d.zip
use expansion state
Diffstat (limited to 'src/components/channellist/channellisttree.hpp')
-rw-r--r--src/components/channellist/channellisttree.hpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/components/channellist/channellisttree.hpp b/src/components/channellist/channellisttree.hpp
index 7ad0d29..b49187a 100644
--- a/src/components/channellist/channellisttree.hpp
+++ b/src/components/channellist/channellisttree.hpp
@@ -198,6 +198,10 @@ protected:
Snowflake m_active_channel;
+ // hashtable for the billion lookups done in UseExpansionState
+ std::unordered_map<Snowflake, Gtk::TreeModel::iterator> m_tmp_row_map;
+ std::unordered_map<Snowflake, Gtk::TreeModel::iterator> m_tmp_guild_row_map;
+
public:
using type_signal_action_channel_item_select = sigc::signal<void, Snowflake>;
using type_signal_action_guild_leave = sigc::signal<void, Snowflake>;