nerdsupremacist / Syntax

Write value-driven parsers quickly in Swift with an intuitive SwiftUI-like DSL
https://quickbirdstudios.com/blog/swift-string-parse/
MIT License
147 stars 10 forks source link

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

Open cmittendorf opened 3 years ago

cmittendorf commented 3 years ago

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?

doozMen commented 1 year ago

I have similar results unfortunately