# 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 either pretty old or do not work for me even with the very simple MWE that follows:

\documentclass[11pt,lualatex]{beamer}
\usepackage{amsmath,amsfonts,amssymb}

\begin{document}
\begin{frame}{}
prova \quad $\alpha + \sum_i \beta_i$
\end{frame}
\end{document}


Could you provide the most updated and reliable way to precompile the preamble with LuaLatex? I specifically work on Windows, distribution TexLive 2019, editor TexStudio, but I think a general guide to the "preamble precompilation" operation would be greatly appreciated!

EDIT 1: the solutions in questions 1, 2 and 3 produce the following error when trying to compile the file (after having precompiled the preamble):

! error:  (pdf backend): referenced object has wrong type others; should be obj
!  ==> Fatal error occurred, no output PDF file produced!

• Could you tell why the approaches in the related questions do not work for you? Do you get errors, or are the formats not applied, or something else? – Marijn Mar 18 at 14:51
• @Marijn, sure. They produce errors, which I have specified in the question. I can also post the whole log if you think it is appropriate and useful. – oibaFox Mar 18 at 22:14