Botfuel / botfuel-dialog

Botfuel SDK to build highly conversational chatbots
https://docs.botfuel.io
Other
102 stars 18 forks source link

perf: run compute functions in parallel into CompositeExtractor #272

Closed simon-tannai closed 5 years ago

simon-tannai commented 5 years ago

Improve CompositeExtractor by executing extractors compute() async method in parallel.

Benchmarked with 8 corpus extractors, 4 web service extractors, 1 RegExp extractor and 1 custom extractor, the previous way took 1113.778ms. The new way took 457.293ms.