manga-image-translator icon indicating copy to clipboard operation
manga-image-translator copied to clipboard

[Bug]: Project imports are loading very long

Open JustFrederik opened this issue 1 year ago • 3 comments

Issue

Before actually executing the project python loads for 2.5 seconds, before even starting to execute. When compiling to pyc its only 1.5 seconds. That seems very slow. I dont know if there is acually an issue or if the project is just getting to big. Im not that familiar with python, but i think imports can be lazyloaded. Im not sure if there is something similar to the feature tag in rust, so only the parts of the code i want to use are acually enabled.

Possible solution

Pyoxidizer improves the import speed, but the project would need to be compiled into an executable. Is it too early for that? I only know it from embeding python code into rust, but it should fairly easy to compile(also cross-platform)

JustFrederik avatar May 29 '23 13:05 JustFrederik

@thatDudo that was just one part of optimization. Could you reopen it?

JustFrederik avatar May 30 '23 07:05 JustFrederik

It did it automatically because of the pr name

thatDudo avatar May 30 '23 09:05 thatDudo

It did it automatically because of the pr name

听不懂你说什么,我这边可以运行

1439707509 avatar May 30 '23 10:05 1439707509