Skip to content

Sidecar process profiling #48

Description

@gjreda

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

Metadata

Metadata

Assignees

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions