-
Notifications
You must be signed in to change notification settings - Fork 643
Remove the middle man thread the JS worker thread #3577
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
base: master
Are you sure you want to change the base?
Conversation
3da1329 to
ce19fd5
Compare
ce19fd5 to
d8a800c
Compare
| ) -> anyhow::Result<UpdateDatabaseResult> { | ||
| /// Send a request to the worker and wait for a reply. | ||
| async fn send_recv<T>( | ||
| mut self: Box<Self>, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why doesn't this take &mut self? It seems to just complicate the code in ModuleHost.
coolreader18
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess I'll approve for now, but I feel like the code could be much less janky.
Description of Changes
This makes us go from 3 threads to 2.
The next step is to core pin the V8 worker thread.
API and ABI breaking changes
None
Expected complexity level and risk
4
Testing
Existing tests should cover this.