Closed xLAva closed 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.
Thank you! Completely forgot I left that in there :)
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.