-
Notifications
You must be signed in to change notification settings - Fork 305
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[statsd] Improve tag normalization speed (#672)
* [tests] Add ability to print profiling stats in statsd benchmark test This change allows us to exactly see where statsd is spending the majority of its time when processing metrics. The profiling can be activated via `BENCHMARK_PROFILING` variable. * [statsd] Improve performance of tag normalization Previously, we used a raw string in `re.sub` which is in the hot-path and needed compilation every time so now we use the precompiled version of the regex to do the substitution, yielding a much better performance.
- Loading branch information
Showing
3 changed files
with
67 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters