Skip to content

Refactor thread fetching into an iterative operation #538

@aumetra

Description

@aumetra

Is your feature request related to a problem? Please describe.

Right now thread fetching is a recursive operation and overflows the stack quite quickly. We already introduced the recursion limit but it already overflows when only fetching 10 replies.

This isn't ideal.

Describe the solution you'd like

Technically every recursive algorithm can be rewritten as an iterative one and vice versa. This is what we need to do here. Make the thread fetching iterative instead.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions