You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On the BBB, it currently takes ~ 2 seconds to run a Python application which imports the app API.
Running python -X importtime -c 'import app_api' breaks down the import time by package.
Going through that output, the biggest time suck is importing the requests library, which takes ~1.82sec. Underneath that, the urllib3 import takes ~1.13sec.
There are many issues floating around for the BBB (and RPi) dealing with slow Python imports, but no one has been able to determine a good solution.
We should look into removing the requests library as an app API dependency and replacing it with something that is much smaller (and therefore faster) to import.
On the BBB, it currently takes ~ 2 seconds to run a Python application which imports the app API.
Running
python -X importtime -c 'import app_api'
breaks down the import time by package.Going through that output, the biggest time suck is importing the
requests
library, which takes ~1.82sec. Underneath that, theurllib3
import takes ~1.13sec.There are many issues floating around for the BBB (and RPi) dealing with slow Python imports, but no one has been able to determine a good solution.
We should look into removing the
requests
library as an app API dependency and replacing it with something that is much smaller (and therefore faster) to import.List of related issues that no one seems to have solved:
adafruit/adafruit-beaglebone-io-python#245
pandas-dev/pandas#7282
psf/requests#3213
psf/requests#4278
psf/requests#4315
urllib3/urllib3#1590
psf/requests#5080
https://www.raspberrypi.org/forums/viewtopic.php?t=205132
The text was updated successfully, but these errors were encountered: