Skip to content
This repository was archived by the owner on May 3, 2026. It is now read-only.
This repository was archived by the owner on May 3, 2026. It is now read-only.

is_empty is very slow? #45

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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