Questions tagged [performance]

{performance} is for all matters related to improving compilation speed, memory usage or code length of the various parts of documents

Filter by
Sorted by
Tagged with
1
vote
2answers
107 views

Does unicode input slow down compilation?

I use a lot of unicode symbols, auto-inserted with a TeXStudio macro (e.g. "\alpha " --> "α"). This makes it easier for me to read my .tex file. These (~100) characters are declared in a .sty file ...
0
votes
0answers
17 views

How to show Xelatex log in shell when converting latex to PDF from shell?

This is my first question here. Basically I'm a programmer. I've been working with a project where we are using xelatex to convert latex to PDF. We are using Ubuntu 18 server environment and installed ...
2
votes
0answers
91 views

Speed up compilation LuaLatex Windows TexLive

I would like to pre-compile the preamble to speed up the compilation of my LuaLatex documents. I have seen several questions regarding this (eg: Question 1, Question 2, Question 3), but all are ...
6
votes
1answer
166 views

How to time code execution in TeX?

Throughout time, during my conversations with members of TeX Exchange, I ran across a few ways to time execution of the code. But the pieces of this information are scattered throughout my account's ...
4
votes
2answers
148 views

What definition takes up more memory, \def or \chardef (considering \def contains a single character)?

The question is entirely in the title. Let's take \def\testName{a} and \chardef\testName`\a. Which of the definitions requires more memory?
0
votes
0answers
38 views

LEd (LaTeX Editor) lagging while typing commands

Hello I am using LEd editor. It is my favorite editor and I would like to keep using it. But for some time it is unusable because it laggs so much when I start typing commands. Whenever I type '\' and ...
20
votes
2answers
363 views

Expandable test for an empty token list—methods, performance, and robustness

With ε-TeX, the go-to method for testing if a <token-list> is empty is the following test: \if\relax\detokenize{<token-list>}\relax % empty \else % not empty \fi The method ...
3
votes
2answers
139 views

How to measure the compilation time of a document?

I have a long .tex file and I want to know the compilation time: duration, begin - finish. Can I add this information to the PDF or display it in .log file?
5
votes
2answers
168 views

Fast membership test for integer lists/sets

Say we have big list of integer numbers, stored as comma-separated values in a macro or token register. Now we want to test in a loop for every integer n = 1, 2, ..., N if n occurs in the list of ...
0
votes
0answers
64 views

TeX capacity exceeded: Is available main memory size depending on machines RAM?

I had the case that I ran into TeX capacity exceeded several times when compiling a pgfplot with lots of data points on a machine with 4096 MB RAM. Now I've tried to compile the very same file on a ...
5
votes
0answers
118 views

Excessive memory use with unicode-math/Fira Sans and xfrac

When trying to use the Greek symbols in the font Fira Sans with unicode-math, I noticed that running lualatex on my document uses up enormous amounts of RAM. I have distilled my problem to a minimal ...
3
votes
1answer
394 views

Externalizing TikZ-Images takes very long

Introduction Hello, I am facing very long compile times of more than 14 minutes for a ~130 page document, including around 40 PGF-Plots/TikZ-Images. Due to LaTeX's memory limits and (in fact) for ...
5
votes
1answer
764 views

How to speed up LuaLaTeX startup with fontspec?

As a novice user of lualatex and fontspec I've found it very slow (>1.3 seconds) to load on my Linux system: % This is file compact.tex \documentclass[a4paper]{article} % This is needed only for old (...
14
votes
4answers
578 views

What is the LaTeX equivalent of ConTeXt \testfeatureonce to benchmark performance

ConTeXt provides a macro \testfeatureonce to benchmark performance. The syntax is \testfeatureonce{n}{...} which runs the code in the second argument n times (n is assumed to be an integer) and ...
8
votes
1answer
78 views

Using control sequence names to efficiently store a large amount of characters

When reading the thread about low-level arrays in TeX I stumbled over a note in Bruno Le Floch's answer: A long string of characters is stored more efficiently as a csname than as a list of tokens....
2
votes
0answers
96 views

Is it possible to keep TeX initial files (.sty, .cfg, .def) in memory in order to speed up each compilation?

I often use LaTeX to write documents and use TikZ/PGF to draw multi-page pictures. However, one common issue (which has been discovered hundreds of times) is that even small change will take some ...
21
votes
1answer
286 views

Speed of includegraphics seemingly dependent on how many packages are loaded!

Here is test file for (Plain) pdftex. To test it, you need some graphics file foo.pdf in working repertory. Mine is a copy of the file found via kpsewhich example-image-a.pdf. Call the following ...
21
votes
1answer
3k views

Why doesn't LaTeX compile faster?

Looking at what computers can do when it comes to presenting graphics (think games, graphical user interfaces, and so forth), it almost comes of as a surprise to me that I often have to wait for ...
1
vote
0answers
87 views

What would be the most efficient way to insert image in a document?

In terms of occupied space and performance (compiling time), what would be the most efficient way to insert image in a document : Insert images from different files (multiple .jpg, .png, etc.); ...
13
votes
1answer
259 views

compiling pdftex 2.2 seconds with 2012 vs 29 seconds with 2018 version

I'm not quite sure where to start looking to fix this. I have recently migrated from an old Ubuntu 14.04 box using texlive/2012 to an 18.04 box running texlive-2018. old box pdfTeX 3.1415926-2.4-1....
0
votes
1answer
202 views

Does splitting tex documents into multiple ones improve build performance

I've seen this mentioned often, for example, in several answers here. But I have my doubts. Do LaTeX engines (latex/pdflatex/xelatex/lualatex) do incremental compilation at all? Besides, even if they ...
30
votes
2answers
6k views

Is it possible to use GPU acceleration on compiling large LaTeX documents?

Surprisingly, I haven't found much information on this topic, except for Tips for choosing hardware for best LaTeX compile performance, which states that compilation time mostly depends on how high ...
1
vote
0answers
764 views

MiKTeX 2.9 - Compiling does take around 3 minutes

I'm using MiKTeX for around 2 years with a great template for my university (https://github.com/andygrunwald/FOM-LaTeX-Template). The results are always great but the time it takes for me to compile ...
6
votes
0answers
1k views

TeX-engine in modern multicore processors [duplicate]

Could (La)TeX processing be made faster by better exploiting the modern multicore processors, such as incorporating multithreading into one of the existing tex-processors? If so, is there any ongoing ...
10
votes
1answer
669 views

How is floating-point arithmetic implemented in TeX

The TeXbook says that TeX only uses fixed-point arithmetic/integer arithmetic with very small units (essentially the same thing for our purposes). Why do modern TeX variants not support floating point ...
13
votes
1answer
653 views

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 ...
5
votes
0answers
254 views

Selectively compiling source in LuaLaTeX

I have recently switched from Xe(La)TeX to Lua(La)TeX 1.0.4 (TeX Live 2017) in order to use font expansion feature of microtype package. As a result, my compilation time increased dramatically. I ...
11
votes
2answers
6k views

Faster way to compile a document [duplicate]

Writing a long document, compilation with Texmaker becomes too slow, so when I want to see how it looks, I loose time (not too much, but it is getting worse because of document's size). Is there any ...
3
votes
0answers
790 views

How to make LuaLateX faster? [closed]

There have been several ideas to improve the speed of PDFLaTeX. Script to automate externalizing TikZ graphics Ultrafast PDFLaTeX with precompiling and many more... Which additional tricks improve ...
2
votes
1answer
909 views

How to build with multiple cores in Ubuntu 16.04 and TexStudio?

I would like to speed up the building of my latex documents, and I'm curious if it's possible to use all four of my processor cores when building documents. There are instructions for windows users, ...
2
votes
0answers
180 views

Processing multiple files effectively XeLaTeX

I need to effectively compile many .tex files to .pdf. As far as I know, LaTeX (so XeLaTeX too) takes a lot of time for loading itself to memory, but a compilation process is fast. Now I have a ...
1
vote
0answers
881 views

Texpad lagging/running slow for no reason

I'm running the newest texpad version 1.7.38 on the newest macbook pro with macOS Sierra 10.12.10. Lately it started to perform slow, it specially seems to lag (there is a delay of 0.3-0.5 s between ...
6
votes
1answer
225 views

Can I downsize lua tables generated by luaotfload?

luatex loads a lot of otf fonts at every luaLaTeX run with my custom class (Minion Pro, Myriad Pro, Minion Math, Latin Modern Mono, Latin Modern Math, XITS). This is an extract taken from my custom ...
1
vote
1answer
190 views

animated plot axis label werid moving

When I use the animate package the axis labels start to dance and bounce as the scale moves, how do I stop this from happening? Also: How do I make the animation smoother? Increasing the framerate ...
10
votes
1answer
416 views

Performance difference between different graphics formats in pdflatex

I have a very complex document with many pictures (jpg, png and pdf). In trying to improve compiling performance I tried to convert all pictures to jpg, then all pictures to png and then to pdf (with ...
5
votes
3answers
889 views

Custom format file and subfiles

I want to use a custom format file to speed up my compilation. However this doesn't play together with the subfiles package. Consider the following minimal example: preamble.tex \documentclass[...
5
votes
1answer
68 views

Performance issues about graphic packages

I develop some web applications which output their reports in LaTeX (I'm aware this is not very standard but "why" and "is it the best choice" do not want to be the point of this question, although ...
4
votes
1answer
132 views

\ThisStyle \SavedStyle painfully slow … alternatives?

While working with customised hat glyphs using the first version of this solution, pdflatex started taking a long time compiling a document. That linked answer notes that it's a slower solution, but ...
3
votes
0answers
154 views

Is there any way to suggest to ConTeXt to take advantage of multiple cores? [duplicate]

I have access to a relatively slow, but hugely (12) multi-cored machine. My 200+ page document has compile times in the 400 second range. Are there any flags or hints that I can give to the mtx-...
2
votes
1answer
248 views

Minimum screen size for LaTeX

I'm getting a new laptop soon (supposedly, anyway; I've been saying that for months). My current laptop is fairly light for its size, but I'd prefer something much lighter. The only way to do that ...
23
votes
5answers
2k views

lua(la)tex vs pdf(la)tex speed in texlive 2015

I know similar questions have been asked about lua*tex speed in years past. But now it's 2015, and according to wikipedia, lua*tex is the designated successor for pdf*tex. my hopes for lua*tex is ...
1
vote
0answers
88 views

LaTeX: precompile document to reuse inside a C++ program [duplicate]

I've made a C++ program with uses a LaTeX template for creating PDF documents. I open the file, replace some placeholders written inside the .tex document with values of a DB, and then, I compile the ...
6
votes
0answers
145 views

Runtime of the TeX family [closed]

I have been searching in vain for statistics about the runtime of pdfTeX, LuaTeX and XeTeX. My impression is that (ordering by increasing runtime), LuaTeX > XeTeX > pdfTeX, but exactly how big is this ...
3
votes
1answer
775 views

Pdflatex on file with large amount of pictures

I have a tex file that's generated by an automated bioinformatics pipeline as a report. Usually, this is roughly 50-150 pages, but that's based on 1-3 samples. It contains many quality control graphs. ...
2
votes
2answers
415 views

Kile takes a long time to run PDFLaTeX for my thesis

It takes ~15-30 seconds to run PDFLaTeX for my PhD thesis. This is killing my productivity. Each included chapter is called, e.g., \include{theory}, and the relevant .tex file starts with the ...
5
votes
1answer
253 views

What to \input and what to \include in a very large document?

I have a large notebook (~300 pages and growing at ~50 per month) with: Deep hierarchy (I use parts, chapters, sections, subsections, subsubsections and paragraphs) Document is broken into many parts ...
34
votes
3answers
6k views

Why is LuaLaTeX so slow and is there anything I can do about it?

A while back I started bumping into issues with LuaLaTex and switched to compiling a project in XeLaTeX. Since then it seems most of my issues have been resolved upstream or are fixable one way on ...
11
votes
2answers
1k views

Why does biber increase compilation time of pdflatex runs dramatically (factor 2.8!!)?

Since I am using biber, the compilation time for my document has increased dramatically. It's a dissertation with <300 pages and a full latexmk compilation suddenly needed 26 minutes which is not ...
10
votes
2answers
4k views

pdflatex suddenly takes much longer to compile document - how to find the reason?

I've done some major changes in my document (dissertation, nearly 300 pages) and now compiling time has increased nearly by factor 3! One pdflatex run took normally less than 3 minutes before and now ...
1
vote
1answer
89 views

Difference in compilation time between two slightly different versions

This question is a byproduct of earlier questions: Creating a list of labels automatically for use by datatool and Automatically creating a table from datatool using references in the text. Here is a ...