Open ayoubft opened 1 year ago
I installed xbitinfo-python
from conda-forge and it loads in about 12s. Definitely nice if you don't need the Julia stuff.
Importing xbitinfo
when installed with e.g. conda install xbitinfo
does indeed take a long time as it does a lot of Julia initialisations (https://github.com/observingClouds/xbitinfo/blob/c917b4304e26a8cc69a9eabd2cc128287f8e7cd4/xbitinfo/xbitinfo.py#L22-33). We should document these options. The pure python option is still fairly new and does not offer all options of the Julia version.
you can use PyOxidizer to speed up the import of Python modules like xbitinfo. PyOxidizer is a tool that packages Python applications into a single executable, which can significantly reduce import times by bundling everything together.
`# pyoxidizer.bzl
from pyoxidizer import PythonInterpreter
python = PythonInterpreter()
# `
Is taking 1min to import
bitinfo
normal?How can I investigate what's causing this?