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

release-19.2: sql: don't allocate phaseTimes on each call to sqlStatsCollector.reset #41427

Merged

Conversation

nvanbenschoten
Copy link
Member

Backport 1/1 commits from #41374.

/cc @cockroachdb/release


This allocation was responsible for 0.28% of a CPU profile when running Sysbench's oltp_point_select workload.

This was broken in ee48ea7. @yuzefovich do you remember anything about this? The change in that commit to store phaseTimes by reference instead of by value in sqlStatsCollector looks very deliberate. See ee48ea7#diff-4fd6eaee39da7af19c97fbf9311f2c1fL1864-R1871.

Release justification: Avoids perf regression due to newly introduced memory allocations.

Release note: None

This allocation was responsible for **0.28%** of a CPU profile when running
Sysbench's oltp_point_select workload.

This was broken in ee48ea7.

Release justification: Reverts perf regression due to newly introduced memory
allocations.

Release note: None
@cockroach-teamcity
Copy link
Member

This change is Reviewable

@yuzefovich
Copy link
Member

LGTM

@nvanbenschoten nvanbenschoten merged commit e0ce5fe into cockroachdb:release-19.2 Oct 8, 2019
@nvanbenschoten nvanbenschoten deleted the backport19.2-41374 branch October 14, 2019 03:10
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.

3 participants