Optimize jabber_id_new()
Mark Doliner
mark at kingant.net
Tue Jun 30 18:08:46 EDT 2009
On Tue, Jun 30, 2009 at 12:05 PM, Paul Aurich<paul at darkrain42.org> wrote:
> On Jun 30, 2009, at 11:51, Mark Doliner wrote:
>>
>> I think these changes make sense. I went with g_utf8_strdown()
>> instead of g_ascii_strdown() because the former takes a length
>> argument, and we want to dup and lowercase pieces of the string. I'll
>> check if g_utf8_strdown() is significantly more expensive, and if it
>> is then maybe write our own g_ascii_strdown_len().
>
> I think you might be confusing g_strdown with g_ascii_strdown, which has
> the same type signature as g_utf8_strdown.
Woah, yeah, or maybe I was looking at g_ascii_tolower(). Thanks for
pointing that out!
-Mark
More information about the Devel
mailing list