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
I am see periodic high cpu usage of my HimeKit app and I am try to detect what wrong.
As show pprof/profile info - 36% cpu time spend on call net.InterfaceByIndex():
pprof/profile
As I am see from sources https://github.com/brutella/dnssd/blob/master/mdns.go#L233 - net.InterfaceByIndex() called on each udp packet received.
May be cache interfaces info instead of get this info from system on every incoming udp packet?
The text was updated successfully, but these errors were encountered:
Another possibility would be no to call net.InterfaceByIndex at all and only work with the iface.Index (the debug messages will be less clear)
net.InterfaceByIndex
iface.Index
Sorry, something went wrong.
Is this fixed now with #55 ?
No branches or pull requests
I am see periodic high cpu usage of my HimeKit app and I am try to detect what wrong.
As show
pprof/profile
info - 36% cpu time spend on call net.InterfaceByIndex():As I am see from sources https://github.com/brutella/dnssd/blob/master/mdns.go#L233 - net.InterfaceByIndex() called on each udp packet received.
May be cache interfaces info instead of get this info from system on every incoming udp packet?
The text was updated successfully, but these errors were encountered: