-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
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
IsFqdn performance issues #1452
Comments
It's definitely showing up in your profiles, the logic is a little tricky, but I definitely see some opportunities to optimise it. |
Jupp, that's why I started looking, as the receiving and sending side are also somewhat expensive, but it's just plain UDP mangling. I went deeper and did some benchmarking based on the values from the unittests, but there's nothing obvious. So, you are likely right, that it could use some optimization, especially around BTW: This is x86 on AWS, a M1 Mac is 4x as fast. |
I have recently added the kubernetes node-cache and noticed a quite high CPU load. The cached node was actually higher than any of the load on the dns server before adding the caching layer.
So after a bit of pprof- and perf-ing around, I've noticed, that the
IsFqdn
call seems to be excessively expensive. Is this something that can be easily optimized? I'm not too deep into Go and the associated logic here, so feedback is welcome :DThe text was updated successfully, but these errors were encountered: