Skip to content
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

Fast Futures #10

Open
p-avital opened this issue Mar 25, 2023 · 2 comments
Open

Fast Futures #10

p-avital opened this issue Mar 25, 2023 · 2 comments

Comments

@p-avital
Copy link
Collaborator

Right now, the only stabby future is either fully stable, but allocates on each poll, or fully unsafe.

Let's make a BlessedCompilerFuture trait that uses CompilerVersion to mark the futures as stable for a given version of the compiler

@p-avital
Copy link
Collaborator Author

Another way futures could be made faster is by storing the latest used waker next to the boxed future, and reusing it if it will_wake the new context's waker when the future is polled again. But I'm not sure how to implement that without forcing the user to write more code yet...

@p-avital
Copy link
Collaborator Author

stabby's handling of Futures is now as fast as I think I can make it without Rust's stdlib allowing stable wakers to exist. Working on getting that through.

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

No branches or pull requests

1 participant