cats-effect icon indicating copy to clipboard operation
cats-effect copied to clipboard

Implement platform-specialized `Queue`s for ScalaJS

Open djspiewak opened this issue 3 years ago • 1 comments

This is probably super-easy because you just don't have to worry about concurrency at all. Given an Async[F], you can do a stupid-simple UnsafeBounded and UnsafeUnbounded from #2885 that should run faster on JavaScript than the JVM versions (which have to guard a lot of complex multi-threaded cases).

The main problem is that we probably shouldn't do this until we have benchmarking infrastructure for ScalaJS. This is unquestionably worth doing in and of itself.

djspiewak avatar Mar 19 '22 15:03 djspiewak

Linking to my benchmarking proposal in https://github.com/typelevel/cats-effect/issues/2684.

armanbilge avatar Mar 19 '22 15:03 armanbilge