Closed ryanpdx closed 3 months ago
Tested with python -X importtime run.py gps -b can0 on C3 card at max CPU frequency
python -X importtime run.py gps -b can0
Import time before changes: 5.9s Import time after changes: 4.1s
Changes:
natsort
loguru
logging
python-can
pkg_resource
Could remove 1.5s more if removed or split out theFlask app, but that could make the projects harder to modify for new students.
Flask
Tested with
python -X importtime run.py gps -b can0
on C3 card at max CPU frequencyImport time before changes: 5.9s Import time after changes: 4.1s
Changes:
natsort
with a custom function (removed 300ms)loguru
with build-inlogging
module (removed 260ms)python-can
to 4.3.0 (release fixed internalpkg_resource
slowdown, removed 1s)Could remove 1.5s more if removed or split out the
Flask
app, but that could make the projects harder to modify for new students.