]> Savannah Git Hosting - gnulib.git/commitdiff
uchar-c23: Speed up mbrtoc32 on Solaris 11.4.
authorBruno Haible <bruno@clisp.org>
Sat, 25 May 2024 10:14:29 +0000 (12:14 +0200)
committerBruno Haible <bruno@clisp.org>
Sat, 25 May 2024 10:14:29 +0000 (12:14 +0200)
* lib/lc-charset-unicode.c (get_converters): Cache the return value.

ChangeLog
lib/lc-charset-unicode.c

index e0daa9c7057aa5e8c75fc408f8101b04cd189cdb..67602828f170edaa6972f7ba9e202cb625d7fc2a 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2024-05-25  Bruno Haible  <bruno@clisp.org>
+
+       uchar-c23: Speed up mbrtoc32 on Solaris 11.4.
+       * lib/lc-charset-unicode.c (get_converters): Cache the return value.
+
 2024-05-25  Bruno Haible  <bruno@clisp.org>
 
        tests: Refactor.
index f6529c1600fa77e6786b4b448da79843c2065436..4558f9288e0634486db6ef640283209d9935b9e8 100644 (file)
@@ -107,6 +107,7 @@ get_converters (const char *encoding)
           return NULL;
         }
       strcpy (conv->encoding, encoding);
+      gl_tls_set (converters_key, conv);
     }
   else if (strcmp (conv->encoding, encoding) != 0)
     {