Skip to content

Large JSON file conversion to a syntax tree never completes #6

@cmittendorf

Description

@cmittendorf

Hi!
I've tried to use your Syntax and SyntaxTree packages for creating myself a viewer for JSON files. These files that I want to inspect can become quite large, more than a megabyte in size with 50.000 lines of code. I'm using the JSON parser from the projects unit tests. But when I try to execute

JSONParser().syntaxTree(jsonString)

it never completes. Smaller files work fine - but these large files never complete. I stopped a test after 20 minutes. However, it's not sucking up memory. The memory usage was constant and not growing. Do you have any idea what could be the reason? Why does the conversion to a SyntaxTree never complete?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions