Skip to content

Reduce number of Decimal creations during conversions #888

@vasyl-pidlisniak

Description

@vasyl-pidlisniak

Is your feature request related to a problem? Please describe.
Units like Gram are creating a Decimal out of a constant upon every creation.

Describe the solution you'd like
A much better option would be to make the constant a Decimal instead and instantiate it only once

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions