[latex3-commits] [git/LaTeX3-latex3-latex3] master: Make sort test faster by reducing number of available toks for that test (4148607)

Bruno Le Floch bruno at le-floch.fr
Fri Apr 6 19:37:28 CEST 2018


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

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

commit 41486079719145e79d8318fc9e8bf58d9c23964c
Author: Bruno Le Floch <bruno at le-floch.fr>
Date:   Fri Apr 6 13:37:28 2018 -0400

    Make sort test faster by reducing number of available toks for that test


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

41486079719145e79d8318fc9e8bf58d9c23964c
 l3kernel/testfiles/m3sort001.luatex.tlg |   12 ++++++------
 l3kernel/testfiles/m3sort001.lvt        |   14 +++++++-------
 l3kernel/testfiles/m3sort001.tlg        |   12 ++++++------
 3 files changed, 19 insertions(+), 19 deletions(-)

diff --git a/l3kernel/testfiles/m3sort001.luatex.tlg b/l3kernel/testfiles/m3sort001.luatex.tlg
index 636c879..9115d67 100644
--- a/l3kernel/testfiles/m3sort001.luatex.tlg
+++ b/l3kernel/testfiles/m3sort001.luatex.tlg
@@ -42,8 +42,8 @@ TEST 4: sort too long
 !...............................................  
 l. ...  }
 |'''''''''''''''''''''''''''''''''''''''''''''''
-| TeX has 65235 toks registers still available: this only allows to sort with
-| up to 48851 items. The list will not be sorted.
+| TeX has 5535 toks registers still available: this only allows to sort with
+| up to 3791 items. The list will not be sorted.
 |...............................................
 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
 !
@@ -57,8 +57,8 @@ l. ...  }
 !...............................................  
 l. ...  }
 |'''''''''''''''''''''''''''''''''''''''''''''''
-| TeX has 65234 toks registers still available: this only allows to sort with
-| up to 48850 items. The list will not be sorted.
+| TeX has 5534 toks registers still available: this only allows to sort with
+| up to 3790 items. The list will not be sorted.
 |...............................................
 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
 !
@@ -72,8 +72,8 @@ l. ...  }
 !...............................................  
 l. ...  }
 |'''''''''''''''''''''''''''''''''''''''''''''''
-| TeX has 65233 toks registers still available: this only allows to sort with
-| up to 48849 items. The list will not be sorted.
+| TeX has 5533 toks registers still available: this only allows to sort with
+| up to 3790 items. The list will not be sorted.
 |...............................................
 ============================================================
 ============================================================
diff --git a/l3kernel/testfiles/m3sort001.lvt b/l3kernel/testfiles/m3sort001.lvt
index 13f8be6..0660ba2 100644
--- a/l3kernel/testfiles/m3sort001.lvt
+++ b/l3kernel/testfiles/m3sort001.lvt
@@ -1,5 +1,5 @@
 %
-% Copyright (C) 2011,2017 LaTeX3 Project
+% Copyright (C) 2011,2017,2018 LaTeX3 Project
 %
 \documentclass{minimal}
 \input{regression-test}
@@ -82,9 +82,9 @@
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 \OMIT
 \tl_set:Nx \l_tmpa_tl
-  { \prg_replicate:nn { 10000 } { V W X Y Z } }
+  { \prg_replicate:nn { 1000 } { V W X Y Z } }
 \clist_set:Nx \l_tmpa_clist
-  { \prg_replicate:nn { 10000 } { V , W , X , Y , Z , } }
+  { \prg_replicate:nn { 1000 } { V , W , X , Y , Z , } }
 \cs_generate_variant:Nn \seq_set_split:Nnn { Nno }
 \seq_set_split:Nno \l_tmpa_seq { } \l_tmpa_tl
 
@@ -94,7 +94,7 @@
   {
     \exp_after:wN \use_none:nnnnn
     \token_to_meaning:N \l_test_toks
-    < 300
+    < \sys_if_engine_luatex:TF { 60000 } { 30000 }
   }
   { \use:c { newtoks } \l_test_toks }
 \TIMO
@@ -104,21 +104,21 @@
   {
     \tl_sort:Nn \l_tmpa_tl { \sort_return_same: }
     \int_compare:nF
-      { \tl_count:N \l_tmpa_tl = 50000 }
+      { \tl_count:N \l_tmpa_tl = 5000 }
       { \ERROR }
     \OMIT
     \use:c { newtoks } \l_test_toks
     \TIMO
     \clist_sort:Nn \l_tmpa_clist { \sort_return_same: }
     \int_compare:nF
-      { \clist_count:N \l_tmpa_clist = 50000 }
+      { \clist_count:N \l_tmpa_clist = 5000 }
       { \ERROR }
     \OMIT
     \use:c { newtoks } \l_test_toks
     \TIMO
     \seq_sort:Nn \l_tmpa_seq { \sort_return_same: }
     \int_compare:nF
-      { \seq_count:N \l_tmpa_seq = 50000 }
+      { \seq_count:N \l_tmpa_seq = 5000 }
       { \ERROR }
   }
 
diff --git a/l3kernel/testfiles/m3sort001.tlg b/l3kernel/testfiles/m3sort001.tlg
index f882cc7..fff68a9 100644
--- a/l3kernel/testfiles/m3sort001.tlg
+++ b/l3kernel/testfiles/m3sort001.tlg
@@ -42,8 +42,8 @@ TEST 4: sort too long
 !...............................................  
 l. ...  }
 |'''''''''''''''''''''''''''''''''''''''''''''''
-| TeX has 32467 toks registers still available: this only allows to sort with
-| up to 24275 items. The list will not be sorted.
+| TeX has 2767 toks registers still available: this only allows to sort with
+| up to 1895 items. The list will not be sorted.
 |...............................................
 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
 !
@@ -57,8 +57,8 @@ l. ...  }
 !...............................................  
 l. ...  }
 |'''''''''''''''''''''''''''''''''''''''''''''''
-| TeX has 32466 toks registers still available: this only allows to sort with
-| up to 24274 items. The list will not be sorted.
+| TeX has 2766 toks registers still available: this only allows to sort with
+| up to 1894 items. The list will not be sorted.
 |...............................................
 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
 !
@@ -72,8 +72,8 @@ l. ...  }
 !...............................................  
 l. ...  }
 |'''''''''''''''''''''''''''''''''''''''''''''''
-| TeX has 32465 toks registers still available: this only allows to sort with
-| up to 24273 items. The list will not be sorted.
+| TeX has 2765 toks registers still available: this only allows to sort with
+| up to 1894 items. The list will not be sorted.
 |...............................................
 ============================================================
 ============================================================





More information about the latex3-commits mailing list