Skip to content

Reuse keyvalues#1165

Merged
mdisibio merged 5 commits intografana:mainfrom
mdisibio:reuse-keyvalues
Dec 10, 2021
Merged

Reuse keyvalues#1165
mdisibio merged 5 commits intografana:mainfrom
mdisibio:reuse-keyvalues

Conversation

@mdisibio
Copy link
Copy Markdown
Contributor

@mdisibio mdisibio commented Dec 9, 2021

What this PR does:
This PR reduces the file size of search data by 30-40% by caching/reusing identical KeyValues structs across traces in a page of data. I.e. each trace with "service.name=[x, y, z]" throughout a page points to the same underlying bytes, instead of encoding it for every trace. This optimization is transparent to the rest of tempo and is forwards/backwards compatible (i.e. older versions of tempo can read this optimized buffer w/o issue).

Which issue(s) this PR fixes:
Fixes n/a

Checklist

  • Tests updated
  • Documentation added
  • CHANGELOG.md updated - the order of entries should be [CHANGE], [FEATURE], [ENHANCEMENT], [BUGFIX]

@mdisibio mdisibio merged commit 519d0f8 into grafana:main Dec 10, 2021
@mdisibio mdisibio deleted the reuse-keyvalues branch April 25, 2023 18:50
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.

2 participants