Closed dwillhalm closed 11 months ago
I have analyzed your source, and it appears the slowness is coming from using commands like
\newcommand\bep{\begin{proof}}
\newcommand\enp{\end{proof}}
since as soon as the parser sees a \begin
it scans for the corresponding \end
. Removing those definitions makes parsing go much faster.
I will look into what can be done in general to speed things up.
This has been fixed in 1.4.2 :-)
I have a document with a bit more than 300 lines of definitions that takes an excessive amount of time to parse. Testing it on the playground raises the same issue. It seems to be a bug in which the parser cannot handle the definitions of begin and end environment very well. Below I copied all lines of the file.