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

Switch Var Header to binary format #26

Merged
merged 1 commit into from
Jan 31, 2025
Merged

Conversation

tigrannajaryan
Copy link
Collaborator

@tigrannajaryan tigrannajaryan commented Jan 25, 2025

Resolves #25

This eliminates dependency on JSON. All var header is now
in custom binary format, which is fast and compact.

I changed UserData to be map[string]string instead of map[string]any.
This makes the format simpler and is good enough for UserData,
we don't need to support arbitrary types and complicate the
format of the header.

I also updated STEF/gRPC implementation to correctly use the binary
format for schema. It was missed in #23

Note that stefgen command continues to use JSON format, since we
need a human readable format as an input to generator.

@tigrannajaryan tigrannajaryan force-pushed the tigran/varheaderformat branch 2 times, most recently from 6a2ae94 to 2016f30 Compare January 26, 2025 23:24
Base automatically changed from tigran/schemaformat to main January 27, 2025 22:31
@tigrannajaryan tigrannajaryan force-pushed the tigran/varheaderformat branch 7 times, most recently from 51de77b to 8db0d07 Compare January 28, 2025 19:11
@tigrannajaryan tigrannajaryan marked this pull request as ready for review January 28, 2025 19:17
Resolves #25

This eliminates dependency on JSON. All var header is now
in custom binary format, which is fast and compact.

I changed UserData to be map[string]string instead of map[string]any.
This makes the format simpler and is good enough for UserData,
we don't need to support arbitrary types and complicate the
format of the header.

I also updated STEF/gRPC implementation to correctly use the binary
format for schema. It was missed in #23

Note that stefgen command continues to use JSON format, since we
need a human readable format as an input to generator.
@tigrannajaryan
Copy link
Collaborator Author

@dmitryax PTAL.

Copy link
Collaborator

@dmitryax dmitryax left a comment

Choose a reason for hiding this comment

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

LGTM

@tigrannajaryan tigrannajaryan merged commit 31ca1ff into main Jan 31, 2025
2 checks passed
@tigrannajaryan tigrannajaryan deleted the tigran/varheaderformat branch January 31, 2025 14:38
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.

Change Var Header to binary format
2 participants