Open rocky opened 4 years ago
I think using lazy import would help to give a significant reduction in load time.
+1.
Note that Sage uses lazy imports to significantly reduce startup time.
Sage patchbots check startup time to warn if any ticket worsens it.
Guessing and anecdotal evidence is one thing. Having hard evidence is another.
This is an open-source project which means that any one has the freedom and opportunity to partiicipate. My suggestion then is to take the code base and make your own experiments and experimental improvements. And if this looks promising then put in a PR.
Thanks in advance.
Will do.
Running even a batch mathics can take a few seconds:
As was pointed out in #633 a bit of this is importing built-in modules. For the above, I have 1.2 seconds for the imports. Here is the breakdown:
In the far future we might consider profiling the code or adding nice mechanism for gathering statistics as #633 did.