Skip to content

General View Debounce #1836

Closed
Closed

Description

@alex-courtis

Many events such as buf write result in refresh / redraw. There are often many in quick succession e.g. telescope.

Add a generic renderer.debounce_delay at 15ms, as per update_focused_file.debounce_delay.

Silently migrate update_focused_file.debounce_delay to renderer.debounce_delay.

Candidates:

Activity

  1. added
    performance
    on Dec 18, 2022
  2. alex-courtis commented on Dec 23, 2022

    @alex-courtis
    MemberAuthor

    view.debounce_delay would be a better option.

  3. changed the title [-]Renderer Debounce[/-] [+]General View Debounce[/+] on Dec 23, 2022
  4. self-assigned this
    on Dec 23, 2022
  5. chomosuke commented on Dec 23, 2022

    @chomosuke
    Collaborator

    How about diagnostics.debounce_delay and filesystem_watchers.debounce_delay? Do you think we should migrate them to view.debounce_delay as well?

  6. chomosuke commented on Dec 23, 2022

    @chomosuke
    Collaborator

    And what do you think about just having debounce_delay instead of view.debounce_delay. I feel like that's more natural with auto_reload_on_write there as well.

  7. added a commit that references this issue on Dec 24, 2022
  8. added a commit that references this issue on Jan 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

performance

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions