[latex3-commits] [latex3/tagpdf] develop, renamekeys: another linked property for speed (23bb61a)
github at latex-project.org
github at latex-project.org
Sun Feb 18 00:30:05 CET 2024
Repository : https://github.com/latex3/tagpdf
On branches: develop,renamekeys
Link : https://github.com/latex3/tagpdf/commit/23bb61a5ca3d3889aa2d877c11fc344b689c7534
>---------------------------------------------------------------
commit 23bb61a5ca3d3889aa2d877c11fc344b689c7534
Author: Ulrike Fischer <fischer at troubleshooting-tex.de>
Date: Sun Feb 18 00:30:05 2024 +0100
another linked property for speed
>---------------------------------------------------------------
23bb61a5ca3d3889aa2d877c11fc344b689c7534
CHANGELOG.md | 3 +++
tagpdf-backend.dtx | 6 ++++++
tagpdf-mc-shared.dtx | 2 +-
tagpdf.dtx | 2 ++
4 files changed, 12 insertions(+), 1 deletion(-)
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 1d37d44..d12fa75 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -9,6 +9,9 @@ this project uses date-based 'snapshot' version identifiers.
### Fixed
- missing slashes in dvilualatex backend, issue #96
+### Changed
+ - speed gain by using linked properties
+
## [2024-02-04]
Version 0.98v
diff --git a/tagpdf-backend.dtx b/tagpdf-backend.dtx
index be567f2..b85ea8a 100644
--- a/tagpdf-backend.dtx
+++ b/tagpdf-backend.dtx
@@ -97,6 +97,12 @@
\lua_now:e { ltx.@@.tables.\cs_to_str:N#1 = {} }
}
+\cs_set_protected:Npn \@@_prop_new_linked:N #1
+ {
+ \prop_new_linked:N #1
+ \lua_now:e { ltx.@@.tables.\cs_to_str:N#1 = {} }
+ }
+
\cs_set_protected:Npn \@@_seq_new:N #1
{
diff --git a/tagpdf-mc-shared.dtx b/tagpdf-mc-shared.dtx
index c38d7b8..081a799 100644
--- a/tagpdf-mc-shared.dtx
+++ b/tagpdf-mc-shared.dtx
@@ -240,7 +240,7 @@
% key: absolute number of the mc (tagmcabs)\\
% value: the structure number the mc is in
% \begin{macrocode}
-\@@_prop_new:N \g_@@_mc_parenttree_prop
+\@@_prop_new_linked:N \g_@@_mc_parenttree_prop
% \end{macrocode}
% \end{variable}
%
diff --git a/tagpdf.dtx b/tagpdf.dtx
index ad8f195..4e0e63b 100644
--- a/tagpdf.dtx
+++ b/tagpdf.dtx
@@ -425,6 +425,7 @@
% \begin{macro}
% {
% \@@_prop_new:N
+% ,\@@_prop_new_linked:N
% ,\@@_seq_new:N
% ,\@@_prop_gput:Nnn
% ,\@@_seq_gput_right:Nn
@@ -435,6 +436,7 @@
% }
% \begin{macrocode}
\cs_set_eq:NN \@@_prop_new:N \prop_new:N
+\cs_set_eq:NN \@@_prop_new_linked:N \prop_new_linked:N
\cs_set_eq:NN \@@_seq_new:N \seq_new:N
\cs_set_eq:NN \@@_prop_gput:Nnn \prop_gput:Nnn
\cs_set_eq:NN \@@_seq_gput_right:Nn \seq_gput_right:Nn
More information about the latex3-commits
mailing list.