Skip to content

Linear growth in memory consumption by Pagination component #139

@knopki

Description

@knopki

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinghelp wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions