Skip to content

Keep single core executor.#5172

Open
Shubham8287 wants to merge 5 commits into
masterfrom
shub/keep-single-executor
Open

Keep single core executor.#5172
Shubham8287 wants to merge 5 commits into
masterfrom
shub/keep-single-executor

Conversation

@Shubham8287
Copy link
Copy Markdown
Contributor

@Shubham8287 Shubham8287 commented Jun 2, 2026

Description of Changes

Merged SingleThreadedExecutor into SingleCoreExecutor.

With this change, procedures run on a Tokio LocalSet, while reducers run inline on the OS thread. The goal is to avoid spawning more than one thread.

I don’t think this meaningfully changes runtime behavior (or we can call it bit of an optimisaion), and it still avoids the async overhead for reducer calls. It also better aligns with the “thread per core” principle and allows the single-threaded DST executor to perform close to production simulation.

API and ABI breaking changes

NA

Expected complexity level and risk

2, simple runtime behaviour change but it could have hidden implications if done wrong.

Testing

I think existing tests should be enough, considering we also have benchmark tests in CI.

Copy link
Copy Markdown
Contributor

@joshua-spacetime joshua-spacetime left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The change itself looks good. Although it has the potential to invalidate a lot of comments. Can you just make sure there are no more references to the old names/executor?

Comment thread crates/core/src/host/wasmtime/mod.rs Outdated
Comment thread crates/core/src/host/module_host.rs Outdated
Comment thread crates/core/src/util/jobs.rs Outdated
Comment thread crates/core/src/host/wasmtime/mod.rs Outdated
@Shubham8287
Copy link
Copy Markdown
Contributor Author

Can you just make sure there are no more references to the old names/executor?

yes, I did.

@Shubham8287 Shubham8287 enabled auto-merge June 3, 2026 06:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants