-
-
Notifications
You must be signed in to change notification settings - Fork 8.6k
[dotnet] [bidi] Immediately start to listen to incoming remote messages #16651
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
[dotnet] [bidi] Immediately start to listen to incoming remote messages #16651
Conversation
PR Compliance Guide 🔍Below is a summary of compliance checks for this PR:
Compliance status legend🟢 - Fully Compliant🟡 - Partial Compliant 🔴 - Not Compliant ⚪ - Requires Further Human Verification 🏷️ - Compliance label |
||||||||||||||||||||||||
PR Code Suggestions ✨Explore these optional code suggestions:
|
|||||||||
|
@RenderMichael AI is correct here?
|
|
@nvborisenko I think the AI is hallucinating as usual, and has it backwards. This StackOverflow answer says it makes an extra thread because the process is expected to use less of the CPU (if I am reading it right). My understanding is, a |
|
Reading more about I’m beginning to warm up to |
|
|
User description
Performance optimization.
💥 What does this PR do?
🔧 Implementation Notes
Taskfor listening to incoming messages as LongRunning, meaning CLR will allocate new thread as fast as possible.🔄 Types of changes
PR Type
Enhancement
Description
Add TaskCreationOptions.LongRunning to BiDi message receiver
Enables CLR to allocate thread immediately for incoming messages
Improves performance of remote message listening
Diagram Walkthrough
File Walkthrough
Broker.cs
Add LongRunning option to message receiver taskdotnet/src/webdriver/BiDi/Broker.cs
TaskCreationOptions.LongRunningparameter to_myTaskFactory.StartNew()callreceiving task
operations