{profiling} is for questions involving the efficiency/speed of a macro, technique or construct.

learn more… | top users | synonyms

23
votes
2answers
547 views

Benchmarking various operations of TeX

TeX offers plenty of ways of doing some things, and it is sometimes difficult to predict which one will be quickest. For instance, how do a macro assignment a toks assignment a macro expansion a ...
16
votes
1answer
306 views

Analog of \pdfelapsedtime for LuaTeX and XeTeX

In pdfTeX, the \pdfelapsedtime primitive gives access to the time since this pdfTeX run was started, in "scaled seconds" (1/65536 seconds). This is useful to benchmark code: repeat it many times, and ...
30
votes
1answer
2k views

Why does it take LuaLaTeX so long to load fonts and can I speed it up?

To test Mico's upcoming selnolig package, I tried out LuaLaTeX. While the overall experience for me as a pdfLaTeX end-user was very similar, I noticed that LuaLaTeX takes a long time to load fonts. ...
24
votes
3answers
524 views

Saving a 100 tokens worth, is it worth it?

The LaTeX kernel defines a number of tokens that are used throughout the LaTeX source and the standard LaTeX classes. For example: \def\hb@xt@{\hbox to} This particular one is commented as: ...
6
votes
2answers
498 views

How to determine the run time of a loop?

pdfTeX, provides two macros that can be used to determine the time elapsed from a run start. The first one determines the elapsed time in "scaled seconds", that means seconds divided by 65536. ...
13
votes
2answers
394 views

Using shell escape to access system time

In an earlier question, I asked for analogs of \pdfelapsedtime (which measures the time since the start of the current run) in XeTeX and LuaTeX. A LuaTeX solution was provided, and is now part of ...
16
votes
1answer
3k views

Why can Bakoma process .tex files so fast?

Bakoma is a LaTeX Editor which has the real-time preview on Windows. On Linux, one has Gummi which has a similar feature and on Windows, I use WinEdt with Sumatra PDF together with an AutoIt script to ...
18
votes
1answer
729 views

Is it still worthwhile to let TeX try line-breaking without hyphenation?

Here's TeX's line-breaking approach (as I understand it) in a nutshell: If \pretolerance is positive, try to break a paragraph into lines without inserting discretionary hyphens and without ...