Thank you very much for pointing me in the right direction.
\documentclass{article}
\makeatletter
% define each table
\@namedef{table1}#1{#1 content of table 1}%
\@namedef{table2}#1{#1 content of table 2}%
% helper function to access tables
\def\mytable#1#2{
\@nameuse{table#1}{#2 ...
Search found 2 matches
- Thu Mar 19, 2020 10:43 am
- Forum: General
- Topic: Switch statement performance
- Replies: 2
- Views: 3313
- Wed Mar 18, 2020 12:11 pm
- Forum: General
- Topic: Switch statement performance
- Replies: 2
- Views: 3313
Switch statement performance
Hello,
I am facing performance issues when using switch statements with a large number of cases.
Defining a new command with an single argument (type int) and returning different content is working as expected BUT the compilation time is depending on the argument:
\tablexy{100} is fast but
\tablexy ...
I am facing performance issues when using switch statements with a large number of cases.
Defining a new command with an single argument (type int) and returning different content is working as expected BUT the compilation time is depending on the argument:
\tablexy{100} is fast but
\tablexy ...