Skip to content

Conversation

@provigz
Copy link

@provigz provigz commented Nov 17, 2024

int depth can now be specified in sexp::Parser::from_* functions. It can be used for omitting (not parsing) structures deeper than depth in the tree, starting from 0. This can optimize reading a few base properties from an otherwise big file.

The omitted objects/arrays will not be present in the parsed Value tree.

Additionally fixes an oversight where sexp::Parser::from_string_* didn't pass use_arrays to sexp::Parser::from_stream_*.

`int depth` can now be specified in `sexp::Parser::from_` functions. It can be used for omitting (not parsing) structures deeper than `depth` in the tree, starting from 0. This can optimize reading a few base properties from an otherwise big file.

The omitted objects/arrays will not be present in the parsed `Value` tree.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant