Skip to content

Incremental matching #5

@saghen

Description

@saghen

In the typical case, users type one character at a time, so the previous needle ends up being a prefix of the new needle. In this case, rather than calculating the scoring matrix for the entire needle x haystack, we can calculate it only for the new characters in the needle. If a user has typed 8 characters and types a 9th, this would lead to a theoretical 8x speedup.

We should also look at the implementation from nucleo to see what kind of interface we should expose

Related alexpasmantier/television#19

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions