Skip to content

Make semantic tokens more performant #1293

@dummdidumm

Description

@dummdidumm

We should add the following logic to semantic tokenization and see if it improves performance:
When a document is updated, check if was a added/deleted alphanumerical character and if the previous character is also alphanumerical. In that case the resulting word will be treated the same semantic-wise. Example: const fo -> const foo -> we know that fo/foo are the same semantic type. Therefore skip computation and mapping entirely and reuse the previous tokens and only adjust/update that result.

Metadata

Metadata

Assignees

No one assigned

    Labels

    perfPerformance

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions