systeminit / si

The System Initiative software
https://systeminit.com
Apache License 2.0
955 stars 67 forks source link

fix(si-layer-cache): remove spawn_blocking calls which break macOS #4522

Closed zacharyhamm closed 1 week ago

zacharyhamm commented 1 week ago

performance seems to massively degrade on macOS when large number of spawn_blocking calls are issued, even when the max blocking pool threads are reduced to 8. Using a suggestion by @fnichol to break the deserialization up with a tokio::task::yield_now() call instead.