We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The target code:
sarama/utils.go
Line 302 in 44f6db5
The following is the part of CPU profile(Flame Graph) in production environment. It accounts for 7.6% in CPU usage and should be optimized.
The text was updated successfully, but these errors were encountered:
fix: compile regex pattern redundantly when parsing kafka version(IBM…
009dfc5
…#2662)
5521b99
…#2662) Signed-off-by: qshuai <qishuai231@gmail.com>
5e59c46
85092cc
Successfully merging a pull request may close this issue.
Description
The target code:
sarama/utils.go
Line 302 in 44f6db5
The function regexp.MustCompile(pattern) will comiple the specified pattern when consuming every time. It is not CPU friendly.
The following is the part of CPU profile(Flame Graph) in production environment. It accounts for 7.6% in CPU usage and should be optimized.
The text was updated successfully, but these errors were encountered: