pablobuenaposada / HonDash

Dashboard for Hondata K-Pro & S300 ECUs
GNU Affero General Public License v3.0
66 stars 29 forks source link

implement cache for formulas #83

Open pablobuenaposada opened 4 years ago

pablobuenaposada commented 4 years ago

`from devices.formula import Formula f = Formula.vdo_323_057

import timeit result = timeit.repeat("for x in range(100): f(x)", "from main import f", number=1000) print(result)`

you can check with this code how to time test the improvement that lru_cache gives