Since adding sentence-transformers and lancedb, simple calls to the sidecar (e.g. get_word_count) are significantly slower. Do profiling to understand why.
I have a suspicion its related to requiring torch as a --hidden-import when building the binary.
Here is the command to build the binary:
poetry run pyinstaller --onefile --noconfirm --hidden-import torch --collect-data torch --recursive-copy-metadata torch --hidden-import pyarrow --collect-data pyarrow --recursive-copy-metadata pyarrow --collect-binaries pyarrow --collect-submodules pyarrow --recursive-copy-metadata importlib_metadata --recursive-copy-metadata tqdm --recursive-copy-metadata sentence-transformers --distpath src-tauri/bin/python src-python/main.py
And here is the PyInstaller version:
$ poetry run pyinstaller --version
5.11.0
Since adding
sentence-transformersandlancedb, simple calls to the sidecar (e.g.get_word_count) are significantly slower. Do profiling to understand why.I have a suspicion its related to requiring
torchas a--hidden-importwhen building the binary.Here is the command to build the binary:
And here is the PyInstaller version: