Bulk mode that is mindful of event loop
Author: kibertoadCreated Sep 19, 2023Updated May 31, 2024
LabelsFeature Request
Stemming of a larger text can take long time (10 seconds and more). Considering that Node.js runs on event loop, blocking operations prevent anything else from being processed.
Would it be possible to introduce async method which would automatically chunk text that exceeds X size and run it on different ticks, and then recombine everything back after done, in order to let event loop to process other requests?
Source: NaturalNode/natural