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

[server] A few WCAA performance improvements #694

Merged
merged 4 commits into from
Nov 1, 2023

Conversation

gaojieliu
Copy link
Contributor

@gaojieliu gaojieliu commented Oct 12, 2023

  1. Adopt fast-avro in the AAWC code path.
  2. Use a schema-id based serde cache to avoid expensive schema comparison.
  3. Dynamically choose the right structure for different logics, such as
    LinkedList vs ArrayList.

How was this PR tested?

CI

Does this PR introduce any user-facing changes?

  • No. You can skip the rest of this section.
  • Yes. Make sure to explain your proposed changes and call out the behavior change.

@FelixGV
Copy link
Contributor

FelixGV commented Oct 12, 2023

I recall that one of the WC code paths has a comment explaining why LL is used here... can you search for it and make sure there is no unintended effect? If it still looks good, then let's update or delete that comment...

@FelixGV
Copy link
Contributor

FelixGV commented Oct 12, 2023

1. Adopt fast-avro in the AAWC code path.
2. Use a schema-id based serde cache to avoid expensive schema comparison.
3. Dynamically choose the right structure for different logics, such as
   LinkedList vs ArrayList.
@gaojieliu gaojieliu changed the title [server] use the default array implementation instead of linkedlist to improve WC perf [server] A few WCAA performance improvements Oct 27, 2023
@gaojieliu gaojieliu requested review from sixpluszero and FelixGV and removed request for sixpluszero October 30, 2023 17:34
Copy link
Contributor

@FelixGV FelixGV left a comment

Choose a reason for hiding this comment

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

Thanks Gaojie. I left a few minor comments. Looking forward to merging this in!

Copy link
Contributor

@FelixGV FelixGV left a comment

Choose a reason for hiding this comment

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

LGTM! Thanks!

@gaojieliu gaojieliu merged commit 216c2c5 into linkedin:main Nov 1, 2023
30 checks passed
elijahgrimaldi pushed a commit to elijahgrimaldi/venice that referenced this pull request Nov 1, 2023
* [server] A few WCAA performance improvements

1. Adopt fast-avro in the AAWC code path.
2. Use a schema-id based serde cache to avoid expensive schema comparison.
3. Dynamically choose the right structure for different logics, such as
   LinkedList vs ArrayList.

* Fixed spotbug issue

* Fixed test coverage issue

* Addressed comments
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.

3 participants