-
Notifications
You must be signed in to change notification settings - Fork 9
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
Declaring acronyms in v3.7+ takes far longer to process than in v2 #272
Comments
It's not I have experienced exactly the same, but with other outputs.
Here it halts for a minute or two before it resumes execution. After that we see it continues with the next thing (
But judging from the parentheses (it closes two parentheses This part from the detailed log:
Maybe it takes time to process many acronyms? I'll try to work out an MWE at some point, but I'm not suffering enough to warrant making it a priority to debug it further. |
Thanks, @dbosk for testing that. After crafting an MWE with 1 to ca. 400 entries, I can confirm, it's not translations.sty, it's simply the list of acronyms created with
I did some non-comprehensive experiments with pdflatex and lualatex as well as with acro v2 and v3.7/3.8 with the following results: with acro v3.7/3.8:
with acro v2:
It is as if v3.7+ introduce features with some intense calculations AND with exponential complexity, while v2 seems not to use such calculations OR its algorithms manage to remain in logarithmic or linear complexity. After a quick test, I can't seem to recognize any significant difference for the MWE between lualatex and pdflatex. |
Thanks @ytzemih for doing that! I can add that I used xelatex. |
Well one problem is that everytime a new entry is added acro goes over the full list to remove duplicates. That is rather unsane. If I disable the removal the compilation from the following document drops from 11.5s to 1.5s. That is still slow (acro seems still to map over all entries in other places), but at least bearable.
|
Looking for Lines 71 to 80 in 9a56e41
Removing it works fine in a basic instance, does it cause issues in fuller examples?
|
Hi, after reinstalling my Linux, I'm now using
with
acro 3.8
. I'm actually mostly usinglualatex
. I'm using the acro package settingstogether with around 200 acronyms in a mid-size LaTeX beamer document.
For some reason, the change to my new Linux installation (with an updated acro) now leads to very long compilation times. Both TeX engines halt for about 4-5 minutes at
only for then to continue as usual. The resulting document looks fine, acro itself is not complaining and no other errors or warnings related to my use of acro appear.
I've introduced
language=english
above in the hope that the override ofauto
solves the problem but that didn't work.Before the Linux re-installation, translations.sty took quite long as well (maybe 15-20 secs), but it was still bearable. Is this a known issue and/or is there anything that I can do? Thank you for any further hints.
The text was updated successfully, but these errors were encountered: