Skip to content

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

Merged
avsej merged 1 commit intocouchbase:mainfrom
avsej:CXXCBC-646-fix-performance-issue-with-replicas
Feb 14, 2025
Merged

CXXCBC-646: Do not copy configuration when the operation depends on it#715
avsej merged 1 commit intocouchbase:mainfrom
avsej:CXXCBC-646-fix-performance-issue-with-replicas

Conversation

@avsej
Copy link
Copy Markdown
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, DemetrisChr and thejcfactor February 14, 2025 03:39
@avsej avsej force-pushed the CXXCBC-646-fix-performance-issue-with-replicas branch 2 times, most recently from 763af3e to a7ed2cb Compare February 14, 2025 04:32
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 CXXCBC-646-fix-performance-issue-with-replicas branch from a7ed2cb to e3f343e Compare February 14, 2025 04:49
Comment thread core/impl/observe_poll.cxx
@avsej avsej requested a review from thejcfactor February 14, 2025 18:20
Copy link
Copy Markdown
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 b2f1442 into couchbase:main Feb 14, 2025
@avsej avsej deleted the 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