Skip to content

[perf] use smallvec for filter_file_{pattern, rule} #1858

@HerringtonDarkholme

Description

@HerringtonDarkholme

the filter_file_pattern and filter_file_rule return a Vec because of one path can return multiple documents.

But in practice most files only have one lang. Using smallvec can improve the performance

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