Skip to content

De-future spawning actors #813

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: gh/zdevito/67/base
Choose a base branch
from
Open

Conversation

zdevito
Copy link
Contributor

@zdevito zdevito commented Aug 9, 2025

Stack from ghstack (oldest at bottom):

This commit switches actor spawning to no longer return a Future. ActorMesh becomes a DeprecatedNotAFuture to keep existing code working.

The implementation delays the send part of endpoints until the actor has spawned. I expect this to have some performance impact, which needs to be measured before we land this.

However, this implementation is not what we expect to actually use: the ability to spawn actors/return a ref immediately will be made part of the rust runtime where the overhead will be substantially less.

Differential Revision: D79938417

NOTE FOR REVIEWERS: This PR has internal Meta-specific changes or comments, please review them on Phabricator!

This commit switches actor spawning to no longer return a Future. ActorMesh becomes a DeprecatedNotAFuture to keep existing code working.

The implementation delays the send part of endpoints until the actor has spawned. I expect this to have some performance impact, which needs to be measured before we land this.

However, this implementation is not what we expect to actually use: the ability to spawn actors/return a ref immediately will be made part of the rust runtime where the overhead will be substantially less.

Differential Revision: [D79938417](https://our.internmc.facebook.com/intern/diff/D79938417/)

**NOTE FOR REVIEWERS**: This PR has internal Meta-specific changes or comments, please review them on [Phabricator](https://our.internmc.facebook.com/intern/diff/D79938417/)!

[ghstack-poisoned]
zdevito added a commit that referenced this pull request Aug 9, 2025
This commit switches actor spawning to no longer return a Future. ActorMesh becomes a DeprecatedNotAFuture to keep existing code working.

The implementation delays the send part of endpoints until the actor has spawned. I expect this to have some performance impact, which needs to be measured before we land this.

However, this implementation is not what we expect to actually use: the ability to spawn actors/return a ref immediately will be made part of the rust runtime where the overhead will be substantially less.

Differential Revision: [D79938417](https://our.internmc.facebook.com/intern/diff/D79938417/)

**NOTE FOR REVIEWERS**: This PR has internal Meta-specific changes or comments, please review them on [Phabricator](https://our.internmc.facebook.com/intern/diff/D79938417/)!

ghstack-source-id: 301854490
Pull Request resolved: #813
@meta-cla meta-cla bot added the CLA Signed This label is managed by the Meta Open Source bot. label Aug 9, 2025
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D79938417

This commit switches actor spawning to no longer return a Future. ActorMesh becomes a DeprecatedNotAFuture to keep existing code working.

The implementation delays the send part of endpoints until the actor has spawned. I expect this to have some performance impact, which needs to be measured before we land this.

However, this implementation is not what we expect to actually use: the ability to spawn actors/return a ref immediately will be made part of the rust runtime where the overhead will be substantially less.

Differential Revision: [D79938417](https://our.internmc.facebook.com/intern/diff/D79938417/)

**NOTE FOR REVIEWERS**: This PR has internal Meta-specific changes or comments, please review them on [Phabricator](https://our.internmc.facebook.com/intern/diff/D79938417/)!

[ghstack-poisoned]
zdevito added a commit that referenced this pull request Aug 11, 2025
Pull Request resolved: #813

This commit switches actor spawning to no longer return a Future. ActorMesh becomes a DeprecatedNotAFuture to keep existing code working.

The implementation delays the send part of endpoints until the actor has spawned. I expect this to have some performance impact, which needs to be measured before we land this.

However, this implementation is not what we expect to actually use: the ability to spawn actors/return a ref immediately will be made part of the rust runtime where the overhead will be substantially less.
ghstack-source-id: 302149553
@exported-using-ghexport

Differential Revision: [D79938417](https://our.internmc.facebook.com/intern/diff/D79938417/)

**NOTE FOR REVIEWERS**: This PR has internal Meta-specific changes or comments, please review them on [Phabricator](https://our.internmc.facebook.com/intern/diff/D79938417/)!
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D79938417

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Meta Open Source bot. fb-exported
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants