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

enh: rewrite echo area only when needed #50

Merged
merged 1 commit into from
Jul 25, 2021

Conversation

AmaiKinono
Copy link
Contributor

It's mentioned in #45 (comment):

What this (package) does is modify a non-current buffer at high frequency, so the main redisplay optimization of updating only the selected window will be disabled. And when that happens, Emacs examines all the windows on all the frames to see which ones need to be updated, something that takes more cycles.

In this patch, we compare the calculated content with the cache, and only rewrite echo area when they are different.

I don't know how to test this though. My Emacs is snappy without this patch. But maybe it's good to have anyway.

@kiennq kiennq merged commit fb2fc86 into kiennq:master Jul 25, 2021
@kiennq
Copy link
Owner

kiennq commented Jul 25, 2021

Thank you.

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