Open allComputableThings opened 5 months ago
I seems that on host, pip install fastdtw
installs:
_fastdtw.cpython-310-x86_64-linux-gnu.so fastdtw.py __init__.py __pycache__
but in the Docker version, just:
fastdtw.py __init__.py __pycache__
and the initpy silently fails to import _fastdtw
.
Why would the contain not have _fastdtw.cpython-310-x86_64-linux-gnu.so?
pip3 install cython before installing fastdtw solves this.
Could cython be added as a project dependency?
The following runs 28x slow in Docker (~28s) than on its host (~1s). I'm pretty sure something is not being compiled correctly. Both the host use the same version of python (3.10), numpy, and fastdtw. However, the docker version somehow makes many more calls to python's builtin min function -- I assume a mistake in how fastdtw is being compiled?
More details and perf logs:
https://stackoverflow.com/questions/78599924/how-to-diagnose-an-28x-slowdown-in-containerized-vs-host-pythonnumpy-execution
Dockerfile:
Any idea why the big slowdown?