Performance regression in export to LaTeX?
Scott Kostyshak
skostysh at lyx.org
Sun Dec 19 16:10:00 UTC 2021
On Sun, Dec 19, 2021 at 03:45:40PM +0100, Jürgen Spitzmüller wrote:
> Am Sonntag, dem 19.12.2021 um 15:03 +0100 schrieb Jürgen Spitzmüller:
> > So it's the cprotection checks that seem to cost time. Need to check
> > whether this can be optimized.
>
> After 61b8afd893ec we're back at
>
> real 0m19,685s
> user 0m15,633s
> sys 0m3,025s
>
> Which is still a bit slower than stable, but a lot faster that where we
> have been.
Thank you, Jürgen! That is indeed much better.
Here is an example file that might show a different (but related?)
issue:
https://www.dropbox.com/s/cwaj2ms14fln8oi/example.23.lyx?dl=0
It's a contrived example file. It just pastes a string like "hmmmm" over
and over. I think it is all on the same line. And pdflatex refuses to
compile it because of the extremely long line. I get:
"! Unable to read an entire line---bufsize=200000."
Thus, a fair response would be "find me a more reasonable use case
before making noise" :)
Nonetheless, the difference in timings are quite large:
On 2.3.0 I'm getting times like the following:
real 0m6.476s
user 0m6.396s
sys 0m0.081s
On master (with your recent fix), I get times like the following:
real 0m44.676s
user 0m44.575s
sys 0m0.092s
I'm still using the following command when testing:
time mylyx 2.3.x -e pdflatex UserGuide.lyx
The format "pdflatex" is the shortname for "LaTeX (pdflatex)", where
pdf2 is the shortname for "PDF (pdflatex)". i.e., I'm checking just
LyX's LaTeX export without compiling.
Scott
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://lists.lyx.org/pipermail/lyx-devel/attachments/20211219/7ee2edae/attachment.asc>
More information about the lyx-devel
mailing list