-
Notifications
You must be signed in to change notification settings - Fork 66
feat: lazy init for Schema and StructType #227
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
Conversation
…Type - Added move and copy constructors and assignment operators for Schema and StructType to manage resource ownership and improve performance. - Refactored field lookup methods to utilize lazy initialization with thread safety, ensuring safe concurrent access. - Introduced unit tests for thread safety in Schema and StructType, validating concurrent operations and access patterns.
wgtmac
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The PR title is broken...
…/move operations - Removed copy and move constructors and assignment operators from Schema and StructType to streamline resource management.
wgtmac
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @nullccxsy!
Fokko
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, thanks @nullccxsy for working on this. In practice, we don't look up by (lowercase) name, and most of the lookups are by Field-ID. So it is good to have these initialize in a lazy fashion 👍
|
Thanks @wgtmac for the review 🚀 |
…Type