Skip to content

collect optimization ? #99

@wiiznokes

Description

@wiiznokes

I want to use this crate to normalize a search, so i have concern about the performance of .collect::<String>.

Is there a way to reuse the previous value, when possible ?

When i try .collect::<Cow<str>>, i always see Owned("...") in the debugger.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions