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

The most minimal fix possible for inter-window messages not being processed #473

Merged
merged 1 commit into from
May 29, 2024

Conversation

timboudreau
Copy link
Contributor

Addresses #463 in the absolutely most minimal way possible - just loop over all windows and process any pending events at the end of event processing for any window.

Does not seem harmful - it would add some minimal overhead to each trip through the event-loop, but thinking it through, I'm not sure there's a way to avoid that which would not be incorrect in some cases.

I could even imagine a more aggressive version which loops over all windows until no window has anything to do (it is still imaginable that window A adds a message for window B and window B processes it adding a message for window A, and so forth, and whichever message is last still has to wait for the next event to jog the event loop).

However, that seems more invasive than a minimal fix for the observed behavior, which this is.

…cessed

Addresses lapce#463 in the absolutely most minimal way possible - just loop over all
windows and process any pending events at the end of event processing for any
window.
@dzhou121 dzhou121 merged commit 6fe51db into lapce:main May 29, 2024
7 checks passed
@timboudreau timboudreau deleted the minimal_fix_463 branch May 30, 2024 16:02
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