Skip to content

Extremely long numbers should be truncated at read time rather than trying to convert very large strings. #1

Description

@FFMG

Very large number that we know cannot be handled, should be truncated as we read the value into string.

for example

{
  "" : 0.123456789123456789123456789
}

should limit 'a' to a=0.1234567891234567891 (or whatever the max len is).

in the case of int,

{
  "a" : 123456789123456789123456789
}

should convert to a=1.2345678912345678912e+27, (or something similar)

We should not read extremely large numbers in memory as it could cause memory issues and/or performance issues.

Activity

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

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingenhancementNew feature or request

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions