-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Inefficient use of sliceOfValues in profiles data #11281
Comments
Assigning to @mx-psi based on the maintainer who merged the PR. |
I am not going to work on this any time soon since I am focusing on Collector 1.0, so I am un-assigning myself to make that clear |
@mx-psi I understand that, but we need to make it clear that approvers/maintainers that are reviewing PRs become the owners of the code, so hence you need to find someone to help you with this. |
Hi @bogdandrutu and @mx-psi ! I'm interested in working on this! Would you be able to guide me on what needs to be done? |
As the person who's been working on profiles so far, I'm looking into this. |
<!--Ex. Fixing a bug - Describe the bug and how this fixes the issue. Ex. Adding a feature - Explain what this achieves.--> #### Description All these slices of values have a potential to store large amounts of data, and should therefore be slices of pointers. <!-- Issue number if applicable --> #### Link to tracking issue Fixes open-telemetry#11281 cc @mx-psi @bogdandrutu
<!--Ex. Fixing a bug - Describe the bug and how this fixes the issue. Ex. Adding a feature - Explain what this achieves.--> #### Description All these slices of values have a potential to store large amounts of data, and should therefore be slices of pointers. <!-- Issue number if applicable --> #### Link to tracking issue Fixes open-telemetry#11281 cc @mx-psi @bogdandrutu
We should never use sliceOfValues for large objects (more than ~32B). See #10195 where everything is marked as "nullable" which will make re-allocation which happens quite often during unmarshaling very expensive because copies lots of data.
One concrete example
MappingSlice
orLocationSlice
should not be a value slice. But someone needs to re-evaluate all of them.The text was updated successfully, but these errors were encountered: