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-387: Cache formatted mbcp_session endpoints #462

Merged
merged 2 commits into from
Oct 23, 2023

Conversation

programmatix
Copy link
Contributor

Profiling indicates that non-trivial time is spent in this logic, which is called on every request.

There appears to be no reason not to cache this formatting in the existing variables, as local_endpoint_address_ is only being used here.

When tested together with another optimisation, this resulted in around a 15% performance improvement.

@avsej avsej force-pushed the optimisation-formatting2 branch from 842f1c7 to 1a863eb Compare October 22, 2023 01:31
…al/remote sessions

Profiling indicates that non-trivial time is spent in this logic,
which is called on every request.

There appears to be no reason not to cache this formatting
in the existing variables.

When tested together with another optimisation, this resulted
in around a 15% performance improvement.
@avsej avsej force-pushed the optimisation-formatting2 branch from 1a863eb to 3ce5451 Compare October 22, 2023 01:32
@avsej avsej merged commit 967a393 into couchbase:main Oct 23, 2023
7 of 13 checks passed
@programmatix programmatix deleted the optimisation-formatting2 branch October 23, 2023 15:32
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