Skip to content

When language is already detected prevent autodetect until significant changes are made #4

@AgustinLeguizamon

Description

@AgustinLeguizamon

To improve performance we could make autodetection work less when a language is already detected. We can use some sort of hit/miss logic when a call to the autodetect feature is not done if the last x calls returned the same result.

For example: If after 10 calls the result is "javascript" then we assume that for another 10 calls is still going to be "javascript". At the 10th call we check again.

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