Skip to content

Making static::unitNameOfAliasesAlreadyRegistered optional depending on environment #75

Description

@vasily-kartashov

Can you think of the best way to make the uniqueness test in AbstractPhysicalQuantity::addUnit:24 optional? Profiling says this is by far the slowest part of the library. It's a great feature for development environment, but there's little reason to incur this penalty in production environment, especially with a proper CI set up.

Same applies for HasSIUnitsTrait::addMissingSIPrefixUnits:191.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    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