Skip to content

is_empty is very slow? #45

@epage

Description

@epage

I run very basic benchmarks for various string implementations. I arbitrarily chose is_empty for my "access" test to see how expensive it was to use the underlying &str and SmartString is ridicuously slow compared to the others.

Looks like SmartString hand implements is_empty rather than relying on the Deref. I'm assuming its some lack of inlining.

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