-
Notifications
You must be signed in to change notification settings - Fork 128
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The minted v3.1.1 is much slower than minted2 #412
Comments
I think there are several different factors affecting compilation time with I'm seeing significantly faster compilation times under Windows 10, though v3.1.1 is still a good bit slower for short documents than v2.9. I suspect that part of what you are seeing may be due to antivirus or other security software. The Python libraries that are bundled with the I'd suggest installing the |
Thank you very much for your reply. I will try your advice. |
I've done some additional testing on a few different Windows 10 machines. In the most recent case, summarized below, I got 1.8s for
I'm working on a few optimizations, and already have around 20% speedup for the baseline case beyond the table above. However, optimizing the code will only have a limited effect if there is some sort of additional operating system or configuration issue that is responsible for most of the slowdown. |
In the latest v3.2.0 release, I've been able to optimize several things for an overall speedup of over 40% for Windows 10 in the case when no code needs to be highlighted. I don't expect that much additional improvement is possible. If you still see slow performance with the latest version, I still suspect that there is some additional factor, either with your machine's configuration or possibly Windows 11, that is causing significant additional slowdown. So it could still be worth trying to install |
My test with
This is about a 20-30% improvement. Interestingly, if the
Thank you very much for the optimization and the new version. |
My system:
Contents of
document.tex
:Compile with
pdflatex document
The compilation time: 7.74sec
The time of the second compilation (so that not only the placeholder is visible): 7.63sec
If
document.tex
contains:Compile with
pdflatex document
(before that, all auxiliary and temporary files are deleted)Compilation time: 13.31sec
If
document.tex
contains:Compile with
pdflatex -shell-escape document
(before that, all auxiliary and temporary files are deleted)Compilation time: 1.26sec
Is there a way to get the result after just one compilation when using
minted
v3.1.1, but just as quickly as withminted2
?The text was updated successfully, but these errors were encountered: