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@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
signature.asc
Description: PGP signature
-- lyx-devel mailing list lyx-devel@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-devel