Skip to content

Use of SmallVec in PluralRules Parser/AST #193

Closed as not planned
Closed as not planned
@zbraniecki

Description

@zbraniecki

You have a lot of boxes, which means a lot of mallocs. This is probably fine, but I wonder if smallvec would be useful, since I expect that most of these lists will be between 0 and 2 elements long, with a few going up to 5 or 6.

Originally posted by @sffc in https://github.com/unicode-org/icu4x/diffs/22

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-performanceArea: Performance (CPU, Memory)C-pluralrulesComponent: Plural rulesR-obsoleteResolution: This issue is no longer relevantT-enhancementType: Nice-to-have but not requiredhelp wantedIssue needs an assignee

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions