Consider cheaper representations of metric label data #2160
Labels
domain: data model
Anything related to Vector's internal data model
domain: metrics
Anything related to Vector's metrics events
domain: performance
Anything related to Vector's performance
needs: approval
Needs review & approval before work can begin.
type: enhancement
A value-adding code change that enhances its existing functionality.
We currently represent metric labels as full
String
s. This is a simple and ergonomic choice but has a cost in memory use and copying.Alternative representations like
Atom
andCow
-like structures could reduce this cost. With proper benchmarking, we can evaluate performance differences and weight them with concerns like ergonomics to decide if switching is worthwhile.Originally brought up by @LucioFranco here.
The text was updated successfully, but these errors were encountered: