[latex3-commits] [git/LaTeX3-latex3-latex3] master: Speed up UnicodeData loop by using \ior_map_variable:NNn (dc0e621)

Bruno Le Floch bruno at le-floch.fr
Sun Jan 13 23:20:45 CET 2019


Repository : https://github.com/latex3/latex3
On branch  : master
Link       : https://github.com/latex3/latex3/commit/dc0e6219bf65cde18c34d093c8100b449280fd5f

>---------------------------------------------------------------

commit dc0e6219bf65cde18c34d093c8100b449280fd5f
Author: Bruno Le Floch <bruno at le-floch.fr>
Date:   Sun Jan 13 23:20:45 2019 +0100

    Speed up UnicodeData loop by using \ior_map_variable:NNn


>---------------------------------------------------------------

dc0e6219bf65cde18c34d093c8100b449280fd5f
 l3kernel/l3unicode.dtx |   10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/l3kernel/l3unicode.dtx b/l3kernel/l3unicode.dtx
index 794749b..ed5379a 100644
--- a/l3kernel/l3unicode.dtx
+++ b/l3kernel/l3unicode.dtx
@@ -130,12 +130,12 @@
             \fi:
           \fi:
         }
-      \ior_map_inline:Nn \g_@@_data_ior
+      \ior_map_variable:NNn \g_@@_data_ior \l_@@_tmpa_tl
         {
-          \cs_set_nopar:Npn \l_@@_tmpa_tl {#1}
-          \reverse_if:N \if_meaning:w \l_@@_tmpa_tl \c_space_tl
-            \@@_data_auxi:w #1 \q_stop
+          \if_meaning:w \l_@@_tmpa_tl \c_space_tl
+            \exp_after:wN \ior_map_break:
           \fi:
+          \exp_after:wN \@@_data_auxi:w \l_@@_tmpa_tl \q_stop
         }
       \ior_close:N \g_@@_data_ior
 %    \end{macrocode}
@@ -228,7 +228,7 @@
             }
         }
       \ior_close:N \g_@@_data_ior
-   \group_end:
+    \group_end:
   }
 %    \end{macrocode}
 % For the $8$-bit engines, the above is skipped but there is still some





More information about the latex3-commits mailing list