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

Stable serialise #1683

Merged
merged 28 commits into from
Jul 10, 2024
Merged

Stable serialise #1683

merged 28 commits into from
Jul 10, 2024

Conversation

fabianmurariu
Copy link
Collaborator

What changes were proposed in this pull request?

add support to serialise the graph into protobuf format

Why are the changes needed?

allow us to encode/decode a graph even if the internal structure changes

Does this PR introduce any user-facing change? If yes is this documented?

new functions

How was this patch tested?

unit

Issues

closes #1679

Are there any further changes required?

@fabianmurariu fabianmurariu marked this pull request as ready for review July 4, 2024 13:02
Copy link
Collaborator

@ljeub-pometry ljeub-pometry left a comment

Choose a reason for hiding this comment

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

Some quick changes:

  • make the decode methods into actual constructors to avoid panics with calling them on non-empty graphs
  • use the existing functionality for the string interning rather than reinventing it
  • make sure the bincode methods get the versioning and add them to the PersistentGraph as well (also make the corresponding python methods that already exist call this new implementation)

Copy link
Collaborator

@ljeub-pometry ljeub-pometry left a comment

Choose a reason for hiding this comment

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

LGTM

@ljeub-pometry ljeub-pometry merged commit 0d45309 into master Jul 10, 2024
19 checks passed
@ljeub-pometry ljeub-pometry deleted the stable_serialise branch July 10, 2024 10:08
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.

Standardise bin format
2 participants