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

CXXCBC-646: Do not copy configuration when the operation depends on it #713

Conversation

avsej
Copy link
Member

@avsej avsej commented Feb 14, 2025

For performance reasons, store bucket configuration as shared pointer, and copy it instead. The SDK can use shared pointer here, as configuration is readonly, and only access to the pointer have to be protected by the mutex

@avsej avsej requested review from a team and mikereiche February 14, 2025 01:32
@avsej avsej force-pushed the rel-1.0-CXXCBC-646-fix-performance-issue-with-replicas branch 2 times, most recently from ae4889d to 83db886 Compare February 14, 2025 04:31
For performance reasons, store bucket configuration as shared pointer,
and copy it instead. The SDK can use shared pointer here, as
configuration is readonly, and only access to the pointer have to be
protected by the mutex
@avsej avsej force-pushed the rel-1.0-CXXCBC-646-fix-performance-issue-with-replicas branch from 83db886 to fade09f Compare February 14, 2025 04:48
Copy link
Contributor

@thejcfactor thejcfactor left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@avsej avsej merged commit 2dfcdc6 into couchbase:release-1.0 Feb 14, 2025
24 of 27 checks passed
@avsej avsej deleted the rel-1.0-CXXCBC-646-fix-performance-issue-with-replicas branch February 14, 2025 19:20
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