Making Paragraph::latex() thread safe?
Scott Kostyshak
skostysh at lyx.org
Tue Aug 30 12:07:32 UTC 2022
On Tue, Aug 30, 2022 at 12:38:20PM +0200, Jean-Marc Lasgouttes wrote:
> Le 30/08/2022 à 12:02, Pavel Sanda a écrit :
> > The bottlenecks I typically experience are of two kinds:
> > 1) pictures conversion (having parallel code would be great even for document load when ton of pics gets converted!)
>
> Yes, the speed of this is questionable right now.
OK, sounds like this is a candidate then for parallelization.
> > 2) final pdflatex compilation
> >
> > The latex generation part is just neligible.
>
> If it is not, it should be profiled before trying to fix something that has
> not been measured.
Makes sense.
> > Point 1 seems to be a good candidate for paralelization. External calls (like knitr) might be as well in case, again, its evaluation can't be dependent on the previous insets. But in this case I am almost sure some previous knitr inset might produce something needed for the subsequent ones ...
>
> Concerning knitr, we pass everything in one big file, and indeed, this is
> usually highly sequential.
I don't think there's hope of speeding up knitr within a single .lyx file. Actually, there are ways to use parallelization in R itself and those should be preferred for a single .lyx file.
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/20220830/373546d2/attachment.asc>
More information about the lyx-devel
mailing list