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

Avoid Arc::clone when serializing physical expressions #12235

Conversation

findepi
Copy link
Member

@findepi findepi commented Aug 29, 2024

Arc::clone is indispensable when passing shared references between threads. For synchronous code& and &Arc can be (and often are) used, with the latter being future-compatible, should the code start to need Arc::clone (e.g. due to parallelization).

`Arc::clone` is indispensable when passing shared references between
threads. For synchronous code`&` and `&Arc` can be (and often are) used,
with the latter being future-compatible, should the code start to need
`Arc::clone` (e.g. due to parallelization).
@github-actions github-actions bot added the proto Related to proto crate label Aug 29, 2024
@crepererum crepererum merged commit 0f16849 into apache:main Aug 29, 2024
24 checks passed
@findepi findepi deleted the findepi/avoid-arc-clone-when-serializing-physical-expressions-a42030 branch August 29, 2024 16:00
@findepi
Copy link
Member Author

findepi commented Aug 29, 2024

That was extracted from #12243 .

This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
proto Related to proto crate
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants