Skip to content
This repository was archived by the owner on Jul 31, 2023. It is now read-only.

Passing capacity to make() in place of length. #1276

Merged
punya merged 2 commits intocensus-instrumentation:masterfrom
fayfaychan:makefix
Mar 31, 2022
Merged

Passing capacity to make() in place of length. #1276
punya merged 2 commits intocensus-instrumentation:masterfrom
fayfaychan:makefix

Conversation

@fayfaychan
Copy link
Copy Markdown
Contributor

The second argument is length and not capacity.

@fayfaychan fayfaychan requested review from a team and rghetia as code owners March 31, 2022 15:49
Copy link
Copy Markdown
Contributor

@punya punya left a comment

Choose a reason for hiding this comment

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

Sorry, I didn't notice that this tried to change maps in addition to slices. Please fix the compilation errors.

@fayfaychan fayfaychan requested a review from punya March 31, 2022 16:20
@punya punya merged commit 0521206 into census-instrumentation:master Mar 31, 2022
@fayfaychan fayfaychan deleted the makefix branch March 31, 2022 17:19
@Dombo
Copy link
Copy Markdown

Dombo commented Feb 22, 2023

I'm fairly confident this improves the memory footprint/fixes a memory leak happening to any consuming package relying on opencensus-go for generating traces. Great job @fayfaychan!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants