systeminit / si

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

feat: incorporate compute executor into dal and layer-cache #4528

Closed fnichol closed 1 week ago

fnichol commented 1 week ago

This change adds a DedicatedExecutor, known as the computer_executor into the DalContext and available in the lib/si-layer-cache subsystem. Notably this is not used/consumed anywhere other than an additional single Tokio runtime which is instantiated. This single Tokio runtime is shared between a ServicesContext and an instance of LayerDb via the DedicatedExecutor's Clone implementation. Future work will begin to use this executor for its intended purpose: spawning compute-intensive work to run off the primary Tokio runtime.

fnichol commented 1 week ago

/try