Skip to content

Tree Node Navigator is slow when searching through a lot of nodes #143

@mi-neovici

Description

@mi-neovici

As in the title, when we have a lot of nodes available (happens on Beta for Neovici employees, from what I heard also happens for e.g. Telcel), typing anything makes the frontend block, as there are many nodes to search through for the matches.

A way to fix this issue is to make the search algorithm more efficient.

That can be done by using a Suffix Tree, by precomputing a Generalized Suffix Tree on loading the nodes, then querying the tree for nodes.
That reduces the complexity from O(n*m), where n is the number of nodes and m is the length of the query string, down to O(m), which is a huge speedup.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions