Skip to content

Should search collation be a different data key + constructor? #3174

Open
@sffc

Description

@sffc

It seems that the decision for whether to use search collations is when the Collator is created in order to perform equality operations on strings. This is the type of thing that the developer could specify in code:

let ordering_collator = Collator::try_new_unstable(...);
let equality_collator = Collator::try_new_search_unstable(...);

Under the hood, we could keep all the same code paths, but move the search collations into a different data key so that static data slicing can pick it up. This would help simplify datagen because we wouldn't need the search* stuff; we just look for the collations/search@1 data key.

CC @hsivonen

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-collatorComponent: Collation, normalizationS-epicSize: Major project (create smaller child issues)T-enhancementType: Nice-to-have but not required

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions