From 5338eab3a5f9a15fbc5dd049bf45fe16d983a8cb Mon Sep 17 00:00:00 2001 From: ouwou <26526779+ouwou@users.noreply.github.com> Date: Fri, 31 Dec 2021 16:42:06 -0500 Subject: speed up connection speed a good bit loading save state was slow so now theres a temporary lookup table --- src/components/channels.hpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/components/channels.hpp') diff --git a/src/components/channels.hpp b/src/components/channels.hpp index 6ab8174..a255f01 100644 --- a/src/components/channels.hpp +++ b/src/components/channels.hpp @@ -120,6 +120,10 @@ protected: bool m_updating_listing = false; + // (GetIteratorForChannelFromID is rather slow) + // only temporary since i dont want to worry about maintaining this map + std::unordered_map m_tmp_channel_map; + public: typedef sigc::signal type_signal_action_channel_item_select; typedef sigc::signal type_signal_action_guild_leave; -- cgit v1.2.3