Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [performance]

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

5
votes
1answer
108 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 (...
13
votes
4answers
432 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 ...
7
votes
1answer
63 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
63 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 ...
20
votes
1answer
230 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
2k 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
43 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
219 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
141 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 ...
26
votes
2answers
4k 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
410 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 ...
5
votes
0answers
345 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
413 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
500 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 ...
4
votes
0answers
147 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 ...
10
votes
2answers
3k 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 worst because of document's size). Is there any ...
3
votes
0answers
456 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 ...
1
vote
1answer
500 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, ...
3
votes
0answers
108 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
491 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
194 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
170 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
184 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
583 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
65 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
102 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
138 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
186 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 ...
22
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
51 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
136 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
560 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
342 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
203 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 ...
31
votes
3answers
5k 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 ...
10
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 ...
9
votes
2answers
3k 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
81 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 ...
5
votes
0answers
267 views

unicode-math + siunitx + lualatex = long compile times. Why? [closed]

The following MWE, compiled under several situations (with appropriate lines removed) gives the following timings (with all output files removed between runs), as timed by Measure-Command on Windows 7 ...
3
votes
1answer
407 views

Document using datatool is slow to compile

The following document uses the datatool package, and is slow to compile, though the resulting PDF file is only 3 pages long. On my computer it takes of the order of 17 sec. I'm hoping for suggestions ...
2
votes
1answer
1k views

Compile extremely large file into pdf

I am using Django and it's templating system to dynamically generate Latex and then compiling it with pdflatex, which works great. The problem is when the latex that gets generated is 30,000+ lines ...
1
vote
1answer
369 views

Speed up CSV loading with datatools package?

I am using the datatool package to read some CSV files. I've used the csvsimple package before, which I finally managed to break by adding more and more requirements to the mix. Now I'd like to switch ...
5
votes
0answers
432 views

LuaTeX performance with RAMdisk

This question may seem like it's been asked a million times over, but the relevant questions tackle XeLaTeX or plain LaTeX. What I want to know is if moving any filesystems/file locations to a ...
35
votes
1answer
5k views

Does LaTeX really perform worse than Word? [closed]

A new study in PLOS ONE1 concludes that even novice MS Word users perform better than expert LaTeX users in document creation. I have read the article and I feel like I have identified some flaws in ...
2
votes
0answers
1k views

Laptop recommendation for LaTeX [closed]

so I am trying to get a laptop (or tablet, any portable device) that will be almost solely used for LaTeX. My highest priority are weight, battery life, and then cost, which I think could bring down ...
5
votes
1answer
222 views

big pdf size due to many small colored boxes

additional info at bottom I was going to use \colorboxes in verbatim mode, one per letter, but this increased significantly the size of pdf (produced via latex+dvipdfmx but pdflatex is similar, and I ...
4
votes
1answer
215 views

Which constructs would cause a long compile time in a Document?

I have a friend which writes a rather long document. By now he has about 130 (PDF) Pages. He uses TexWorks on Windows and his document takes sometimes up to 2 - 3 minutes until it is compiled. I'm ...
7
votes
0answers
906 views

XeLaTeX and LuaLaTeX: which is faster? [closed]

Beacuse I typeset in Japanese, I don't use LaTeX and now want to know which compiles faster: XeLaTeX or LuaTeX? Is Lua language allows to make the compile faster?
27
votes
2answers
7k views

How to optimize pdf with many links and simple pages

So... I can play tic-tac-toe (naughts and crosses) in a pdf: each board configuration is one page, and each cell of the board is a link which goes to the page corresponding to playing that move. The ...
2
votes
1answer
93 views

Performance question - Tabularx or manual column width calculation?

I'm using the tabularx package and the provided X column type to get dynamic column widths. Since the pdflatex run takes longer and longer, I'm wondering whether it would be faster to use an ...