Open thautwarm opened 2 years ago
Using python's toml
to parse a Project.toml would be better here:
https://github.com/Suzhou-Tongyuan/jnumpy/blob/58d3a292d266223e5cdc137d42db2b7e8f5189c0/jnumpy/apis.py#L80
It cost 0.1s
to get project name while init_project()
cost 0.9s
on my computer.
Fine, we could use toml
at this stage.
As a Python user, one second loading time for a small project is painful.
I'm testing a very small example as follows:
This seems to be the theoretically fastest loading time:
So far the extra overhead comes from the following parts, which can be optimized in the future:
calling interpreted julia to get configuration:
https://github.com/Suzhou-Tongyuan/jnumpy/blob/669e046ca6448e8c06e39d0f98cf9d124a541c11/jnumpy/init.py#L112-L117
calling interpreted julia to get the module name:
https://github.com/Suzhou-Tongyuan/jnumpy/blob/669e046ca6448e8c06e39d0f98cf9d124a541c11/jnumpy/apis.py#L92