Re: [gtk-osx-users] Slow gdk_display_get_name() on macOS Sierra
- From: Jiří Techet <techet gmail com>
- To: gtk-osx-users-list gnome org
- Subject: Re: [gtk-osx-users] Slow gdk_display_get_name() on macOS Sierra
- Date: Thu, 16 Feb 2017 11:59:48 +0100
By the way, I checked with wireshark and
[NSHost currentHost] sends 3 pairs (IPv4 and IPv6) MDNS (multicast DNS used by Bonjour) PTR queries for the IPv6 address and waits for response until it times out. This really isn't a good method to be called by gdk_display_get_name() which could actually return arbitrary string because unlike X11 there will never be more displays.
By the way I noticed there's also g_get_host_name() which is a more user-friendly way to call gethostname().
Jiri
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]