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

Avoid serialization/deserialization of StreamElement value #223

Open
je-ik opened this issue Jun 16, 2021 · 0 comments
Open

Avoid serialization/deserialization of StreamElement value #223

je-ik opened this issue Jun 16, 2021 · 0 comments

Comments

@je-ik
Copy link
Collaborator

je-ik commented Jun 16, 2021

Call to

  StreamElement elem = StreamElement.upsert(..., serialized(value));
  Object value = elem.getParsed().get()

causes unnecessary serialization and deserialization of value. We can extend StreamElement.upsert() with the (optional) deserialized object that will be set to parsed cache and prevent deserialization upon retrieval.

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

No branches or pull requests

1 participant