2 Matching Annotations
- Dec 2023
-
www.bitecode.dev www.bitecode.dev
-
Both are bad if you need to cancel tasks, collaborate a lot between tasks, deal precisely with the task lifecycle, needs a huge number of workers or want to milk out every single bit of perfs. You won’t get nowhere near Rust level of speed.
-
Process pools are good for:
- When you don't need to share data between tasks.
- When you are CPU bound.
- When you don't have too many tasks to run at the same time.
- When you need true parallelism and want to exercise your juicy cores.
-