Skip to content

Maximum call stack size exceeded with very large factorial calculations #5

@polarstoat

Description

@polarstoat

During the performance testing for #2 , it was discovered that very large factorial calculations using the current method of recursion can cause the call stack size to be exceeded.

A Stack Overflow answer suggests this can be fixed by wrapping the recursive function call in a setImmediate function.

It's not yet known at exactly what size factorial calculation the maximum call stack size will be exceeded.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions