synesthesiam / rhasspy

Rhasspy voice assistant for offline home automation
https://rhasspy.readthedocs.io
MIT License
950 stars 101 forks source link

Fuzzywuzzy: major speed improvement by disabling the debug log spam #137

Closed xLAva closed 4 years ago

xLAva commented 4 years ago

By removing a debug log line, the recognizing time of fuzzywuzzy can be drastically reduced.

Hardware: RaspberryPi 3. The sentence count in the test setup: 100 - 200. The recognition time changed from over 2 seconds to 320 ms.

I also experimented with caching the sentences and choices, but this only reduced the time about 20ms, so I decided to keep it as is.

synesthesiam commented 4 years ago

Thank you! Completely forgot I left that in there :)