[LyX/master] tex2lyx: improve module support

Scott Kostyshak skostysh at lyx.org
Wed Feb 3 21:10:27 UTC 2021

On Wed, Feb 03, 2021 at 03:58:03PM +0100, Jean-Marc Lasgouttes wrote:
> Le 02/02/2021 à 06:47, Scott Kostyshak a écrit :
> > 
> > Starting with this commit, tex2lyx is a bit slower. For importing the string "\textbf{hello}", it took about 0.15s before (as measured by the "real" row of the "time" command output) and now it takes about 0.56s. I tested by putting the string in a file mwe.tex and running the following command:
> > 
> > $ time /path/to/tex2lyx -userdir /path/to/user-dir -fixedenc utf8 -f mwe.tex /dev/null
> > 
> > The fix seems like nice feature, so the small increase in time might be worth it. Also, tex2lyx is not usually a feature that a user uses repeatedly, so in my opinion a delay is fine. Nonetheless, I note the increased time just in case it was unexpected.
> Is it only startup time, or is it worse with large documents?

In a quick test it does not seem so. Rather I would guess it would increase as the number/length of modules and layouts increase.

-------------- 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/20210203/0ba2ddc5/attachment-0001.asc>

More information about the lyx-devel mailing list