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

AVRO-4010: [Rust] Avoid re-resolving schema on every read() #2995

Merged
merged 1 commit into from
Jul 3, 2024

Conversation

spektom
Copy link
Contributor

@spektom spektom commented Jul 2, 2024

This is an optimization that allows to eliminate schema re-resolving on every read() by caching resolved schema in the reader instance.

The change is not breaking the API.
The documentation changes are not needed.

This improves the performance by 25% for my use case.

@github-actions github-actions bot added the Rust label Jul 2, 2024
@spektom
Copy link
Contributor Author

spektom commented Jul 3, 2024

@martin-g Can you please review this performance improvement?

@martin-g
Copy link
Member

martin-g commented Jul 3, 2024

Please don't force push! It is hard to see what change you did to fix the broken build since the last time.
At the end we do "Squash and merge" anyway so there is only one commit per issue/PR.

Copy link
Member

@martin-g martin-g left a comment

Choose a reason for hiding this comment

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

The changes look good! The (old) tests pass!
But I cannot say anything about the performance without any data proving this ...

@martin-g martin-g merged commit f3b6ee2 into apache:main Jul 3, 2024
15 checks passed
martin-g pushed a commit that referenced this pull request Jul 3, 2024
Co-authored-by: Michael Spector <[email protected]>
(cherry picked from commit f3b6ee2)
@martin-g
Copy link
Member

martin-g commented Jul 3, 2024

Thank you, @spektom !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
2 participants