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

Linear growth in memory consumption by Pagination component #139

Open
knopki opened this issue Feb 20, 2025 · 0 comments
Open

Linear growth in memory consumption by Pagination component #139

knopki opened this issue Feb 20, 2025 · 0 comments
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@knopki
Copy link

knopki commented Feb 20, 2025

Pagination component is eating memory sice 1e7b8db It's slow and can consume gigabytes of RAM.

This is due to the use of Array(length).fill() in the loop. Thus, instead of creating only the necessary nodes for only visible page numbers, nodes are created even for invisible pages.

@blokhin blokhin added bug Something isn't working help wanted Extra attention is needed labels Feb 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants