Updated:
Question
How to speed up apps created with Python.
...
Answer
It is possible to build and use a speedup library called Numba.
https://numba.pydata.org/
Below are the steps to build Numba and the code for a sample app (yuv_yolov5_app) that applies Numba.
https://iproiot.atlassian.net/wiki/spaces/TPFAQEN/pages/832504608/Compile+external+library+for+Python#Compile-a-Python-module-(Numba)
...