Skip to content
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

Rework protobuf representation of mutation tree #281

Merged
merged 2 commits into from
Jul 13, 2024
Merged

Rework protobuf representation of mutation tree #281

merged 2 commits into from
Jul 13, 2024

Conversation

afd
Copy link
Member

@afd afd commented Jul 13, 2024

To avoid a restriction of the protobuf library that limits the
recursion depth of a protobuf message, this change reworks the way the
mutation tree is represented in protobuf format. The tree is now
organised as a flat list of nodes, and the children of a node are
identified via indices into this list.

Fixes #192.

afd added 2 commits July 13, 2024 14:21
To avoid a restriction of the protobuf library that limits the
recursion depth of a protobuf message, this change reworks the way the
mutation tree is represented in protobuf format. The tree is now
organised as a flat list of nodes, and the children of a node are
identified via indices into this list.

Fixes #192.
@afd
Copy link
Member Author

afd commented Jul 13, 2024

@JamesLee-Jones This reworking turned out to be reasonably straightforward, so - assuming that this solves the problems that you and @JonathanFoo0523 encountered - I think it's better to go this route rather than trying to upstream work-arounds to protobufs.

Copy link
Collaborator

@JonathanFoo0523 JonathanFoo0523 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@afd afd merged commit 6bdb29b into main Jul 13, 2024
9 checks passed
@afd afd deleted the issue-192 branch July 13, 2024 23:19
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.

Error writing JSON data when input file is large
2 participants