-
Notifications
You must be signed in to change notification settings - Fork 98
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Slow parsing of very long flow-style lines #289
Comments
Wow, this one reveals something that was overlooked. Thanks for reporting. There is an implicit assumption throughout the code that a YAML line is smallish. Because of subtle token-scanning intrincacies (eg searching for For example, here. The check for I will have to spend some time on this. In the meantime, until there is a fix addressing places where this assumption was instilled, you will improve your parse speed substantially if you stick to block style in these cases, or if you break the lines (which I know may be a problem if you're using ryml to create these files as IIRC it still has no facility to break the lines when emitting). |
Parsing is currently slow with very long flow-style lines. Enables fast parsing using block style at the cost of a larger file size.
Parsing is currently slow with very long flow-style lines. Enables fast parsing using block style at the cost of a larger file size.
Parsing is currently slow with very long flow-style lines. Enables fast parsing using block style at the cost of a larger file size.
Parsing is currently slow with very long flow-style lines. Enables fast parsing using block style at the cost of a larger file size.
termination tokens before potential scans to the end of the line.
termination tokens before potential scans to the end of the line.
When parsing a large 34MB file, it seems stuck in an infinite loop (waited 5 minutes). This file is almost the same as the one from #288 except that it has 500 flow style sequences of 10 000 floats each instead of a block style. The block style file takes less then a second to load... I'm using 17 precision floats (which are doubles) and used the
ryml::_WIP_STYLE_FLOW_SL
for generating the file.Step to reproduce:
The text was updated successfully, but these errors were encountered: