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

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

Merged
merged 2 commits into from Mar 31, 2022
Merged

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

merged 2 commits into from Mar 31, 2022

Conversation

fayfaychan
Copy link
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
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

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.

None yet

3 participants