[Pidgin] #9703: add a GHashTable cache for conversations to speed up find_conversation_with_account
Pidgin
trac at pidgin.im
Sun Jul 26 16:17:41 EDT 2009
#9703: add a GHashTable cache for conversations to speed up
find_conversation_with_account
-----------------------------------------+----------------------------------
Reporter: tmm1 | Owner: darkrain42
Type: patch | Status: new
Milestone: Patches Needing Improvement | Component: libpurple
Version: 2.5.8 | Resolution:
Keywords: |
-----------------------------------------+----------------------------------
Comment(by tmm1):
I made the following change to the patch:
{{{
--- a/libpurple/conversation.c
+++ b/libpurple/conversation.c
@@ -748,7 +748,8 @@ purple_conversation_set_name(PurpleConversation *conv,
const char *name)
g_hash_table_remove(conversation_cache, hc);
g_free(conv->name);
- conv->name = g_strdup(purple_normalize(conv->account, name));
+ conv->name = g_strdup(name);
+ hc->name = g_strdup(purple_normalize(conv->account, conv->name));
g_hash_table_insert(conversation_cache, hc, conv);
purple_conversation_autoset_title(conv);
}}}
--
Ticket URL: <http://developer.pidgin.im/ticket/9703#comment:3>
Pidgin <http://pidgin.im>
Pidgin
More information about the Tracker
mailing list