Re: glib iconv caching
- From: mortenw gnome org
- To: gtk-devel-list gnome org
- Subject: Re: glib iconv caching
- Date: Mon, 8 Aug 2005 17:05:09 -0400 (EDT)
I would guess that the reason caching was needed to begin with
was because of crazy code like (from g_utf8_collate)...
gchar *str1_locale = g_convert (str1_norm, -1, charset, "UTF-8", NULL, NULL, NULL);
gchar *str2_locale = g_convert (str2_norm, -1, charset, "UTF-8", NULL, NULL, NULL);
where "charset" is from g_get_charset, i.e., in practice it never
changes.
Just keeping a single iconv around here for this would do wonders
for efficiency. (Similar code is found in g_utf8_collate_key.)
Morten
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]