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

[lit-labs/virtualizer] Add documentation for the keyFunction property #1322

Open
imlutr opened this issue Apr 8, 2024 · 0 comments · May be fixed by lit/lit#4692
Open

[lit-labs/virtualizer] Add documentation for the keyFunction property #1322

imlutr opened this issue Apr 8, 2024 · 0 comments · May be fixed by lit/lit#4692

Comments

@imlutr
Copy link

imlutr commented Apr 8, 2024

Hi! I was using the Lit virtualizer and noticed it was kind of slow. I dug in the Performance tab and I noticed that it basically uses repeat() for some of its work. Then I wondered about using keyFunction, to optimize the performance and sure enough, the library offers such functionality - and it seems to make a fair difference.

It'd be great if this was mentioned in the README for the virtualizer 😄.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

Successfully merging a pull request may close this issue.

1 participant