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

Optimize redrawing of choices #254

Closed
wants to merge 1 commit into from
Closed

Optimize redrawing of choices #254

wants to merge 1 commit into from

Conversation

ghost
Copy link

@ghost ghost commented Sep 24, 2017

... each time the cursor moves only in the input query field all choices are printed again even though nothing has changed ... this PR avoids the unnecessary redraw and saves some CPU cycles ... ;-)

@mptre
Copy link
Owner

mptre commented Oct 21, 2017

Thanks. I agree in principle that this is more efficient but wonder if
it improves the responsiveness of the UI? Do you experience
flickering/rendering artefacts without this diff applied?

@ghost
Copy link
Author

ghost commented Oct 21, 2017

Using pick over a serial terminal line (VT520 with 38400 baud rate) it improves cursor movement drastically ... believe me: you don't want a full screen redraw each time on such terminals ... ;-)

mptre added a commit that referenced this pull request Nov 6, 2017
Some key bindings only affect the query and unconditionally redrawing
the choices is therefore a wast of time in such scenarios.

Originally proposed by Jenz Guenther in PR #254.
@mptre
Copy link
Owner

mptre commented Nov 6, 2017

Sorry for taking so long. See #264 for a slightly different approach,
reducing the necessary indent level a bit.

@ghost
Copy link
Author

ghost commented Nov 6, 2017

Thanks, I'm closing this in favor of #264 ...

@ghost ghost closed this Nov 6, 2017
@ghost ghost deleted the xaxis branch November 6, 2017 19:03
@mptre
Copy link
Owner

mptre commented Nov 6, 2017

Great, I'm planning on doing a release tomorrow.

This pull request was closed.
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.

1 participant