Skip to content

A new performance check: prefer operator comparisons to strings.Compare #1167

@zigo101

Description

@zigo101

The current implementation of the strings.Compare function is not efficient, in a some deliberate way.
refs:

At least, for non-three-way comparisons, using operators to compare strings is always faster than using the strings.Compare function.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions