Questions tagged [profiling]

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

Filter by
Sorted by
Tagged with
11 votes
2 answers

Code Review: LaTeX Profiling in expl3

I have a pretty big template of packages/classes for multiple different document types. Some of the users sometimes complain that the compile times are soooo long. However, to find the bottlenecks of ...
Wulle's user avatar
  • 1,182
3 votes
2 answers

Patching \usepackage / \RequirePackage

I want to implement automatic benchmarking for the packages I load (some of which are my own). Right now my preamble takes 15 seconds to load, much longer than the rest of my document seems to take to ...
r0uv3n's user avatar
  • 33
2 votes
1 answer

Are vpacks expensive?: doing fine grain performance measurement/profiling with mixed latex & luatex code

How to do fine grain performance measurement with mixed latex, luatex code? Let's say there are two blocks of code, executed one after another. The first one is in plain latex, and the second is ...
codepoet's user avatar
  • 1,286
13 votes
1 answer

Compilation Speed - texlive 2017 slower than 2015 - How to profile?

we're using a toolchain based on texlive 2015 and I made a try replacing it with the new released version of texlive 2017. As testobject I used or current document (~650 pages). I found out that a ...
aronadaal's user avatar
  • 553
3 votes
0 answers

XeLaTeX - Bottleneck at eu1enc.def [closed]

With XeLaTeX my compiler always consistently slows down when it comes to accessing eu1enc.def (I am using the fontspec package). I tried with copying that file and the others employed at that point (...
Goofy's user avatar
  • 31
4 votes
0 answers

Why are the numbers I get from the PGF profiler library all so close to an integer number of seconds?

I wanted to see whether some macros I wrote could be made noticeably quicker by eliminating the use of parsed PGF math commands, in favour of using the PGF math function macros (\pgfmathadd, etc.) ...
Hammerite's user avatar
  • 3,526
7 votes
4 answers

Package loading speeds

Is there any benchmarking regarding which packages take longer to load than others? Of course I know it depends on the computer you are running and perhaps even your Internet connection if you are ...
Mario S. E.'s user avatar
  • 18.4k
46 votes
1 answer

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. ...
doncherry's user avatar
  • 54.1k
14 votes
2 answers

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 ...
Bruno Le Floch's user avatar
11 votes
1 answer

Does writing to a property list take longer than writing to a token list?

In the question Write a column selectively to the appropriate row using pgfplotstable? I offered the following: \documentclass{article} \usepackage{xparse} \usepackage{booktabs} \usepackage{...
Scott H.'s user avatar
  • 11k
19 votes
1 answer

Different compilation times with different Operating Systems

I have noticed that when compiling or rather typesetting with XeLaTeX, I experience very different compilation times on different Operating Systems. When I typeset on Windows, the compilation process ...
brian-ammon's user avatar
  • 2,365
10 votes
1 answer

Reduce compilation time for opentype fonts (otf)

I have some opentype fonts (otf) which I use with fontspec. Everything works fine. During the compilation LuaLaTeX load the otf-files in a temporary file. For example: (load: /home/marco/....
Marco Daniel's user avatar
25 votes
1 answer

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 ...
user565739's user avatar
  • 5,382
22 votes
1 answer

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 ...
Bruno Le Floch's user avatar
26 votes
1 answer

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 exceeding ...
lockstep's user avatar
  • 248k
27 votes
2 answers

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 toks ...
Bruno Le Floch's user avatar
9 votes
2 answers

Why is this loop so much faster under Windows?

In a recent question, Yiannis Lazarides was asking about benchmarking loops. Strangely his results were about 800 times faster than mine. I couldn't quite accept that my computer is that outdated (as ...
Caramdir's user avatar
  • 88k
9 votes
2 answers

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. \...
Yiannis Lazarides's user avatar
27 votes
3 answers

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: The ...
Yiannis Lazarides's user avatar