Evolution of the time used by lyx2lyx based on the Python version used
Scott Kostyshak
skostysh at lyx.org
Tue Oct 10 19:24:17 UTC 2023
On Tue, Oct 10, 2023 at 08:17:13PM +0100, José Matos wrote:
> Just for fun I ran the conversion of the 2.3 User Guide to the 2.4
> format. In order to do that I used the several versions of Python that
> I have available since lyx2lyx only uses the standard library:
>
> [jamatos at griffin ~]$ for v in 2 3.{6..12};
> do echo -n $v; time python$v /usr/share/lyx-devel/lyx2lyx/lyx2lyx -o
> /dev/null /usr/share/lyx/doc/UserGuide.lyx; done
> 2
> real 0m1.487s
> user 0m1.449s
> sys 0m0.037s
> 3.6
> real 0m0.294s
> user 0m0.273s
> sys 0m0.020s
> 3.7
> real 0m0.262s
> user 0m0.236s
> sys 0m0.025s
> 3.8
> real 0m0.209s
> user 0m0.193s
> sys 0m0.016s
> 3.9
> real 0m0.220s
> user 0m0.202s
> sys 0m0.019s
> 3.10
> real 0m0.239s
> user 0m0.221s
> sys 0m0.019s
> 3.11
> real 0m0.204s
> user 0m0.179s
> sys 0m0.024s
> 3.12
> real 0m0.179s
> user 0m0.165s
> sys 0m0.015s
>
> So as you can see Python 3.12 is 8.78 times faster than Python 2.7.
From what I understand, this means we haven't spent enough time
optimizing the code for 2.7. ;)
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/20231010/8ee01f86/attachment.asc>
More information about the lyx-devel
mailing list