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

WFLY-18069 Eliminate unnecessary buffer copies when writing an object with known size via ProtoStream #16903

Merged
merged 3 commits into from Jun 7, 2023

Conversation

pferraro
Copy link
Contributor

@pferraro pferraro commented Jun 5, 2023

https://issues.redhat.com/browse/WFLY-18069

Uses non-buffering encoder during marshalling whenever possible, e.g. the backing OutputStream is a ByteArrayOutputStream.
Relocates reference tracking logic from the AnyMarshaller to the ProtoStreamWriter.writeAny(...) and ProtoStreamReader.readAny() method implementations.
Replaces thread local based context propagation during read/write/size operations with per-operation context instances.
Adds per-operation buffer size caching to reduce heap/cpu usage during a write operation.

@pferraro pferraro requested a review from rhusar June 5, 2023 15:28
@github-actions github-actions bot added the deps-ok Dependencies have been checked, and there are no significant changes label Jun 5, 2023
@darranl
Copy link
Contributor

darranl commented Jun 6, 2023

/retest

@darranl
Copy link
Contributor

darranl commented Jun 6, 2023

Triggered a CI run as I just merged three PRs - if this is reviewed (and still passes) it can likely go straight in as nothing to aggregate with.

Copy link
Member

@rhusar rhusar left a comment

Choose a reason for hiding this comment

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

👍🏼 I couldn't find any issues here.

@darranl darranl merged commit 8ce8978 into wildfly:main Jun 7, 2023
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
29.Alpha1 deps-ok Dependencies have been checked, and there are no significant changes
Projects
None yet
3 participants