Skip to content
This repository has been archived by the owner on Jul 28, 2024. It is now read-only.

Efficiency: Return a cached version of the line when harpoon state is unchanged #5

Closed
abeldekat opened this issue Mar 20, 2024 · 0 comments · Fixed by #7
Closed

Efficiency: Return a cached version of the line when harpoon state is unchanged #5

abeldekat opened this issue Mar 20, 2024 · 0 comments · Fixed by #7

Comments

@abeldekat
Copy link
Owner

A small improvement.

The plugin only updates its data on the appropriate events.
However, the format function still constructs the line dynamically, using string.format

Solution: Cache that line, and use it when nothing has changed for harpoon.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant