opentelemetry-js icon indicating copy to clipboard operation
opentelemetry-js copied to clipboard

perf(otlp-transformer): reduce allocations

Open Samuron opened this issue 1 year ago • 1 comments
trafficstars

Which problem is this PR solving?

The penguins are losing homes

Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change.

Just usual low hanging fruits - do not iterate map via entries(), use regular loops, less array copying via map

Fixes # (issue)

Short description of the changes

Type of change

Please delete options that are not relevant.

  • [X] Bug fix (non-breaking change which fixes an issue)
  • [ ] New feature (non-breaking change which adds functionality)
  • [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • [ ] This change requires a documentation update

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration

  • [ ] Test A

Checklist:

  • [ ] Followed the style guidelines of this project
  • [ ] Unit tests have been added
  • [ ] Documentation has been updated

Samuron avatar Mar 25 '24 06:03 Samuron

This PR is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 14 days.

github-actions[bot] avatar Jun 10 '24 06:06 github-actions[bot]

This PR was closed because it has been stale for 14 days with no activity.

github-actions[bot] avatar Jul 15 '24 06:07 github-actions[bot]