Aaron Todd
11/01/2022, 1:33 PM<http://Dispatchers.IO|Dispatchers.IO>
at the appropriate level to do your blocking read/write will be the most efficient. When we benchmarked using suspend
for low level JSON tokenization in the AWS SDK for Kotlin we found this to hold true. suspend
at too low a level (inner loops, small byte reads, etc) causes significant performance degradation.
My question then is what about JS (node) support? The recommendation to block a thread is fine for JVM/Native, what would the equivalent be for JS?