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(java): Support CopyOnWriteArrayListSerializer #1613

Merged
merged 2 commits into from
May 8, 2024

Conversation

MrChang0
Copy link
Contributor

@MrChang0 MrChang0 commented May 8, 2024

What does this PR do?

Support CopyOnWriteArrayListSerializer

Related issues

Does this PR introduce any user-facing change?

  • Does this PR introduce any public API change?
  • Does this PR introduce any binary protocol compatibility change?

Benchmark

@MrChang0 MrChang0 requested a review from chaokunyang as a code owner May 8, 2024 08:48

static {
try {
final Field field = CopyOnWriteArrayList.class.getDeclaredField("array");
Copy link
Collaborator

Choose a reason for hiding this comment

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

Could we implement this serializer like ImmutableListSerializer. The array field here won't be referenced by other objects. So we can use collection serialization protocol

Copy link
Collaborator

@chaokunyang chaokunyang left a comment

Choose a reason for hiding this comment

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

LGTM

@chaokunyang chaokunyang merged commit 9687fd8 into apache:main May 8, 2024
32 checks passed
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.

2 participants