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

Lazy indexing #15

Open
4 tasks done
wooorm opened this issue Dec 21, 2023 · 0 comments
Open
4 tasks done

Lazy indexing #15

wooorm opened this issue Dec 21, 2023 · 0 comments
Labels
🤞 phase/open Post is being triaged manually

Comments

@wooorm
Copy link
Member

wooorm commented Dec 21, 2023

Initial checklist

Problem

Index is created on startup for the entire document

indices.push(value.length + 1)
. Perhaps doing unused work.

Solution

Lazily index up to a line number when called.

Alternatives

n/a

@github-actions github-actions bot added 👋 phase/new Post is being triaged automatically 🤞 phase/open Post is being triaged manually and removed 👋 phase/new Post is being triaged automatically labels Dec 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🤞 phase/open Post is being triaged manually
Development

No branches or pull requests

1 participant