Skip to content

Throttle autosave actions #5679

Closed
Closed
@Ka0o0

Description

@Ka0o0

Is your suggestion for improvement related to a problem? Please describe.
While I was debugging for issue #5658 I noticed that when doing a find and replace the save action will be performed for every change in entries.

Describe the solution you'd like
A common way of limiting unnecessary write operations is to introduce some sort of throttling. It works in a way that the application waits for n milliseconds until it actually performs the write operation. If, however, during the time another change has occurring the original task is canceled and the delay is restarted.

Additional context
Java provides a Timer class which can be used for this purpose

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions