summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/xsim/xsim.auxfile.code.tex
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2020-03-17 21:32:40 +0000
committerKarl Berry <karl@freefriends.org>2020-03-17 21:32:40 +0000
commitd3055981f6f2eef5eaf0ed6e1407c5c46ba77172 (patch)
tree5024a0fad0ef81a7be8f224c6f523337e69823d6 /Master/texmf-dist/tex/latex/xsim/xsim.auxfile.code.tex
parent636cbf03f6dcdc84f121e242abcf036015800524 (diff)
xsim (17mar20)
git-svn-id: svn://tug.org/texlive/trunk@54380 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/xsim/xsim.auxfile.code.tex')
-rw-r--r--Master/texmf-dist/tex/latex/xsim/xsim.auxfile.code.tex16
1 files changed, 6 insertions, 10 deletions
diff --git a/Master/texmf-dist/tex/latex/xsim/xsim.auxfile.code.tex b/Master/texmf-dist/tex/latex/xsim/xsim.auxfile.code.tex
index 4fa95620a35..2f31f2009f5 100644
--- a/Master/texmf-dist/tex/latex/xsim/xsim.auxfile.code.tex
+++ b/Master/texmf-dist/tex/latex/xsim/xsim.auxfile.code.tex
@@ -105,19 +105,17 @@
\cs_new_protected:Npn \xsim_new_list:n #1
{
\xsim_verbose:n { Defining~ new~ auxfile~ list~ `#1'. }
- \prop_new:c {g__xsim_list_#1_prop}
\seq_new:c {g__xsim_list_#1_seq}
\seq_new:c {g__xsim_list_recorded_#1_seq}
\xsim_new_aux_property:cpn {#1} ##1
{
- \prop_gclear:c {g__xsim_list_#1_prop}
\tl_if_blank:nF {##1}
{
\seq_gset_split:cVx {g__xsim_list_#1_seq}
\l__xsim_split_aux_lists_str
{ \tl_to_str:n {##1} }
\seq_map_inline:cn {g__xsim_list_#1_seq}
- { \prop_gput:cnn {g__xsim_list_#1_prop} {####1} {} }
+ { \xsim_attribute_set:nnn {#1} {####1} {} }
}
}
\xsim_at_begin_document:n
@@ -140,7 +138,7 @@
{
\xsim_verbose:n { Adding~ `#2'~ to~ list~ `#1'. }
\str_set:Nn \l__xsim_tmpa_str {#2}
- \prop_gput:cnn {g__xsim_list_#1_prop} {#2} {}
+ \xsim_attribute_set:nnn {#1} {#2} {}
\seq_if_in:cVT {g__xsim_list_#1_seq} \l__xsim_tmpa_str
{ \seq_gremove_all:cV {g__xsim_list_#1_seq} \l__xsim_tmpa_str }
\seq_gput_right:cV {g__xsim_list_#1_seq} \l__xsim_tmpa_str
@@ -153,8 +151,8 @@
{
\xsim_verbose:n { Removing~ `#2'~ to~ list~ `#1'. }
\str_set:Nn \l__xsim_tmpa_str {#2}
- \prop_if_in:cnT {g__xsim_list_#1_prop} {#2}
- { \prop_gremove:cn {g__xsim_list_#1_prop} {#2} }
+ \xsim_attribute_if_set:nnT {#1} {#2}
+ { \xsim_attribute_unset:nn {#1} {#2} }
\seq_if_in:cVT {g__xsim_list_#1_seq} \l__xsim_tmpa_str
{ \seq_gremove_all:cV {g__xsim_list_#1_seq} \l__xsim_tmpa_str }
\seq_if_in:cVT {g__xsim_list_recorded#1_seq} \l__xsim_tmpa_str
@@ -167,16 +165,13 @@
% #2: entry
\prg_new_conditional:Npnn \xsim_if_in_list:nn #1#2 {p,T,F,TF}
{
- \prop_if_in:cnTF {g__xsim_list_#1_prop} {#2}
+ \xsim_attribute_if_set:nnTF {#1} {#2}
{ \prg_return_true: }
{ \prg_return_false: }
}
\cs_generate_variant:Nn \xsim_if_in_list:nnTF {nx}
\cs_generate_variant:Nn \xsim_if_in_list:nnT {nx}
-\cs_new:Npn \xsim_list_show:n #1
- { \prop_show:c {g__xsim_list_#1_prop} }
-
\bool_new:N \l__xsim_empty_lists_bool
\cs_new_protected:Npn \xsim_empty_lists:
{ \bool_set_true:N \l__xsim_empty_lists_bool }
@@ -223,3 +218,4 @@
% ----------------------------------------------------------------------------
\file_input_stop:
+2020/03/16 - performance optimizations