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

feat(endpoint): make the endpoint struct smaller when serialized [EE-4754] #8436

Open
wants to merge 3 commits into
base: develop
Choose a base branch
from

Conversation

hookenz
Copy link
Contributor

@hookenz hookenz commented Feb 2, 2023

Liberal addition of omitempty. This has reduced the size of the serialized endpoint object by at least 2/3 or more. It also strips data not relevant for some endpoint types. End result - faster maybe marshaling and unmarshaling and slightly less data on the wire.

I've also changed some embedded object types to pointers. specifically Kubernetes endpoint types.

See: EE-4754

Copy link
Contributor

@prabhat83 prabhat83 left a comment

Choose a reason for hiding this comment

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

there are no FE changes. I hope its not breaking FE

api/internal/snapshot/snapshot.go Outdated Show resolved Hide resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants