DataDog / datadogpy

The Datadog Python library
https://datadoghq.com/
Other
611 stars 302 forks source link

[statsd] Optimize tag normalization #671

Closed sgnn7 closed 3 years ago

sgnn7 commented 3 years ago

Is your feature request related to a problem? Please describe.

Profiling statsd operations points to an extremely high utilization (~60% total) via re.sub operations (used in normalize_tags function)

Describe the solution you'd like

Optimize normalize_tags to take less computational complexity

Describe alternatives you've considered A clear and concise description of any alternative solutions or features you've considered.

Additional context Add any other context or screenshots about the feature request here.