Reduce typing latency caused by POLL_WAIT
#846
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR makes it so that Reedline no longer wait for
POLL_WAIT
after every keystroke. Instead, the delay is only triggered if text pasting or resizing is detected.It also re-introduces a fix from PR #651. That PR was reverted by #840 because of issue #757 about external printers. If the feature
external_printer
is not enabled, this PR will just block on input forever for maximum power efficiency. Users withexternal_printer
enabled will also see a small improvment in power efficiency, because this PR makes it possible to use a longer polling inteval without affacting typing latency.Fixes #643, #10484, and #521, and hopeful doesn't break #757.