Skip to content

Speed improvement ? when parsing more doubles than integers #24

Description

@JaredDavis22

Hi -

Thanks again for writing this library. It is great.

I profiled a run which has about 350K evaluates. The entire run was about 5.5 seconds. There was 0.5 seconds of time spent filling the exception stack. I traced it back to class Literals where parseDecimal was calling parseInteger when the string to parse contained a decimal point. This would throw an exception which was swallowed.

If the formula only contains integers this change will increase the time a little bit for the test for the decimal point.

JaredDavis22@4568f05

Activity

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

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