mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-09-06 16:08:43 +02:00
Rewritten to cache iconv conversion descriptors. On at least some Unix
2002-01-21 Jeffrey Stedfast <fejj@ximian.com> * glib/gconvert.c (open_converter): Rewritten to cache iconv conversion descriptors. On at least some Unix systems like Solaris, iconv_open() must dlopen the necessary charset modules in order to setup the descriptor. This can take a major toll on performace if you are constantly opening and closing conversion descriptors for the same charset conversions over and over. (g_convert_with_fallback): Use close_converter() rather than g_iconv_close() since open_converter() now caches iconv descriptors.
This commit is contained in:
committed by
Jeffrey Stedfast
parent
5a7cf7fa60
commit
0751448ad7
@@ -1,3 +1,15 @@
|
||||
2002-01-21 Jeffrey Stedfast <fejj@ximian.com>
|
||||
|
||||
* glib/gconvert.c (open_converter): Rewritten to cache iconv
|
||||
conversion descriptors. On at least some Unix systems like
|
||||
Solaris, iconv_open() must dlopen the necessary charset modules in
|
||||
order to setup the descriptor. This can take a major toll on
|
||||
performace if you are constantly opening and closing conversion
|
||||
descriptors for the same charset conversions over and over.
|
||||
(g_convert_with_fallback): Use close_converter() rather than
|
||||
g_iconv_close() since open_converter() now caches iconv
|
||||
descriptors.
|
||||
|
||||
Tue Jan 29 11:18:44 2002 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* 1.3.13
|
||||
|
Reference in New Issue
Block a user