purple_conv_chat_cb_find's use of g_utf8_collate

Zachary West zacwest at gmail.com
Tue Apr 14 02:27:47 EDT 2009


Howdy,

purple_conv_chat_cb_find() uses g_utf8_collate() to find
PurpleConvChatBuddys, but this is a _very, very_ slow function, taking
up a significant chunk of time when dealing with it.

Is there any reason for this function to be using g_utf8_collate()
instead of purple_strequal() and purple_normalize()ing the nicks? It's
just trying to identify which nicks are equal, does it need to take
the locale into consideration?

Thanks,

Zac West




More information about the Devel mailing list