|
|
|
|
|
by fulmicoton
1216 days ago
|
|
The trouble with spawn_blocking is that it runs on the tokio thread pool...
By default the size of that thread pool is gigantic because it is meant to run blocking IO.
For computation, you would want to have a number close to the number of threads of the CPU. ... And you can't have both. |
|