Skip to content

Performance: takes three seconds to evaluate 4-4-4-...-4 repeated 27 times; expressions with more terms cause several second delay #414

@alexyorke

Description

@alexyorke

Describe the bug

Expression evaluation is extemely slow for long expressions. This expression 4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-1 takes three seconds to evaluate when pasted into the calculator.

Steps To Reproduce

  1. Open Calculator
  2. Paste in the above expression
  3. Wait three seconds
  4. The result will be displayed

Expected behavior

The result should be almost instantaneous

Screenshots

Device and Application Information (please complete the following information):

  • OS Build: 10.0.17134.0
  • Architecture: X64
  • Application Version: 10.1812.10048.0 (latest version after re-installing it and checking Windows Store for updates)

Additional context

An expression such as 4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-1-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-1-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-1-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4 causes an Invalid Input error, and the expression 4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-1-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4 causes the calculator to become unresponsive for several seconds.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions