Skip to content

Tail Recursive Consensus #17

@ashwin153

Description

@ashwin153

Consensus is already tail recursive; however, the Scala compiler isn't smart enough to know it. If we replace the various flatMap calls with match expressions, the Scala compiler will recognize the function as tail-call optimizable.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions