Skip to content

BigDecimal(string, prec) can allocate huge memory #355

Open
@tompng

Description

@tompng

Precision passed to BigDecimal(string, prec) has no effect, but can allocate huge memory.
Just ignoring precision is better.

BigDecimal('12', 100000000000)
# processing time: 4.705712s

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