Skip to content

XML#nodes(String) Method is Extremely Slow on Large Files #288

@volodya-lombrozo

Description

@volodya-lombrozo

I have one large XML file and run the following java code on it:

private static Collection<XML> findDefects(final XML report) {
  return report.nodes("/defects/defect");
}

It runs extremely long (minutes). Could you speed up this method, please?

Here is my XML:
Pointer.xmir.txt

XML is instance of XMLDocument.

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