-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Optimize zlabel usage for stringlabels
Using the ZLabelsToPromLabels hack is no longer free with stringlabels because the in-memory format of the two types is different. Because of this, using a stringlabels build in the Receiver can be more CPU intensive than the normal build. In order to allow for an efficient usage of stringlabels, this commit removes `ZLabelsToPromLabels` calls in TSDBStore and ProxyStore. There is now a specialized implementation of ZLabel conversion functions with a stringlabels build tag in order to avoid panics, but long term we should get rid of these functions if possible. Signed-off-by: Filip Petkovski <filip.petkovsky@gmail.com>
- Loading branch information
1 parent
2367777
commit 8d0f284
Showing
11 changed files
with
740 additions
and
467 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
Oops, something went wrong.