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>
Fri, 31 May 2024 15:37:03 +0000 (17:37 +0200)
* lib/lc-charset-unicode.c (get_converters): Cache the return value.

ChangeLog
lib/lc-charset-unicode.c

index 12c2600d7a2fadc9eb541a6ccb1d83fa28c09ebe..b552a0f31931f6038d5c1f8eb63b064b7c07dd63 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-24  Collin Funk  <collin.funk1@gmail.com>
 
        boot-time, readutmp: Add a Native Windows boot time fallback.
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)
     {