Skip to content

Union on a sequence of Intervals uses reduceRight, exhausting the stack #32

@kwalcock

Description

@kwalcock

The code is here:

sorted.reduceRight(_ union _)

It is causing reach to crash on large nxml input files with too many sections.

See also allenai/openie-standalone#36

Changing to reduceLeft seems to fix the problem. A PR is being prepared.

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