Multiplatform (coroutines) okio/okhttp question......
# squarelibraries
a
Multiplatform (coroutines) okio/okhttp question... A strong case is made for the blocking I/O model in the comment thread of this okio issue. The main argument being that dispatching once to
<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?