[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: [gtk-osx-users] Slow gdk_display_get_name() on macOS Sierra
- Date: Wed, 15 Feb 2017 22:33:07 +0100
Hi,
after switching to macOS Sierra I (and another user) noticed that Geany whose OS X port I maintain starts significantly slower:
After some debugging it turns out it's the gdk_display_get_name() call which takes several seconds to complete. This function just returns [NSHost currentHost]; according to Apple documentation
the function can block for several seconds, depending on user's configuration. I found some more mentions of this behaviour, e.g.
Interestingly, simple unix gethostname() as used in Apple's implementation of the hostname command
returns immediately (at least for me). Would it be OK to use gethostname() in gdk_display_get_name()? Is there some specific reason why [NSHost currentHost] is used?
Cheers,
Jiri
[Date Prev][
Date Next] [Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]