libuv/src/unix
Ben Noordhuis 038eacfbf4 darwin: speed up uv_set_process_title()
Libuv loaded and unloaded the Core Services and Application Services for
every call to uv_set_process_title().

Change that to load them on the first call to uv_set_process_title() and
delay unloading until libuv is unloaded.

Speeds up process_title_threadsafe by about 10x on my system. It should
fail less often (hopefully not at all) on the CI now.

PR-URL: https://github.com/libuv/libuv/pull/2480
Reviewed-By: Saúl Ibarra Corretgé <s@saghul.net>
2019-10-08 12:49:47 +02:00
..
aix-common.c src: move uv_free_cpu_info to uv-common.c 2019-08-19 23:01:17 +02:00
aix.c unix,win: add uv_get_constrained_memory() 2019-05-15 11:35:05 -04:00
android-ifaddrs.c android: fix build 2019-10-08 09:20:52 +02:00
async.c unix: fix race condition in uv_async_send() 2019-04-22 16:22:36 +02:00
atomic-ops.h aix: Fix broken cmpxchgi() XL C++ specialization. 2019-09-06 10:17:12 +02:00
bsd-ifaddrs.c build: fix build warning on cygwin 2019-10-04 23:54:06 +02:00
bsd-proctitle.c core,bsd: refactor process_title functions 2018-10-18 10:11:40 +02:00
core.c unix: fix {Net,Open}BSD build 2019-09-25 14:46:24 +02:00
cygwin.c src: move uv_free_cpu_info to uv-common.c 2019-08-19 23:01:17 +02:00
darwin-proctitle.c darwin: speed up uv_set_process_title() 2019-10-08 12:49:47 +02:00
darwin.c src: move uv_free_cpu_info to uv-common.c 2019-08-19 23:01:17 +02:00
dl.c misc: remove unnecessary null pointer checks 2015-11-17 09:18:55 +01:00
freebsd.c src: move uv_free_cpu_info to uv-common.c 2019-08-19 23:01:17 +02:00
fs.c fs: use statvfs in uv__fs_statfs() for Haiku 2019-09-25 16:40:50 +02:00
fsevents.c fsevents: regression in watching / 2019-09-26 16:07:46 +02:00
getaddrinfo.c test,sunos: fix statement not reached warnings 2019-03-16 13:22:16 -04:00
getnameinfo.c unix,win: limit concurrent DNS calls to nthreads/2 2018-08-21 10:48:24 +02:00
haiku.c src: move uv_free_cpu_info to uv-common.c 2019-08-19 23:01:17 +02:00
ibmi.c unix,win: add uv_get_constrained_memory() 2019-05-15 11:35:05 -04:00
internal.h unix,win: add uv_random() 2019-09-18 08:09:14 +02:00
kqueue.c fsevents: stop using fsevents to watch files 2019-09-26 16:01:27 +02:00
linux-core.c build: fix build error with __ANDROID_API__ < 21 2019-09-16 11:16:56 +02:00
linux-inotify.c linux: get rid of strncpy() call 2018-12-04 17:08:20 +01:00
linux-syscalls.c unix,win: add uv_random() 2019-09-18 08:09:14 +02:00
linux-syscalls.h unix,win: add uv_random() 2019-09-18 08:09:14 +02:00
loop-watcher.c include,src: introduce UV__ERR() macro 2018-02-08 22:38:02 -05:00
loop.c unix,win: merge handle flags 2018-06-29 22:24:52 +02:00
netbsd.c src: move uv_free_cpu_info to uv-common.c 2019-08-19 23:01:17 +02:00
no-fsevents.c include,src: introduce UV__ERR() macro 2018-02-08 22:38:02 -05:00
no-proctitle.c include,src: introduce UV__ERR() macro 2018-02-08 22:38:02 -05:00
openbsd.c unix: fix {Net,Open}BSD build 2019-09-25 14:46:24 +02:00
os390-syscalls.c zos: use correct pointer type in strnlen 2018-06-29 04:38:28 -07:00
os390-syscalls.h linux: remove epoll syscall wrappers 2018-09-06 13:07:13 +02:00
os390.c src: move uv_free_cpu_info to uv-common.c 2019-08-19 23:01:17 +02:00
pipe.c build: fix build warning on cygwin 2019-10-04 23:54:06 +02:00
poll.c unix: catch some cases of watching fd twice 2018-05-30 13:24:19 +02:00
posix-hrtime.c unix: factor out reusable POSIX hrtime impl 2017-03-03 15:52:42 +01:00
posix-poll.c unix: don't attempt to invalidate invalid fd 2019-02-10 10:11:19 -05:00
process.c unix: remove redundant cast in process.c 2019-06-24 22:00:03 -04:00
procfs-exepath.c include,src: introduce UV__ERR() macro 2018-02-08 22:38:02 -05:00
proctitle.c darwin: speed up uv_set_process_title() 2019-10-08 12:49:47 +02:00
pthread-fixes.c unix: fix bug in barrier fallback implementation 2016-04-26 09:35:47 +02:00
random-devurandom.c unix,win: add uv_random() 2019-09-18 08:09:14 +02:00
random-getentropy.c unix,win: add uv_random() 2019-09-18 08:09:14 +02:00
random-getrandom.c unix,win: add uv_random() 2019-09-18 08:09:14 +02:00
random-sysctl.c unix,win: add uv_random() 2019-09-18 08:09:14 +02:00
signal.c unix,signal: keep handle active if pending signal 2019-08-19 22:39:06 +02:00
spinlock.h unix: add spinlock.h 2013-10-20 13:58:34 +02:00
stream.c aix: replace ECONNRESET with EOF if already closed 2019-09-06 09:59:54 +02:00
sunos.c src: move uv_free_cpu_info to uv-common.c 2019-08-19 23:01:17 +02:00
sysinfo-loadavg.c unix: factor out reusable sysinfo loadavg impl 2017-05-21 16:12:16 +02:00
sysinfo-memory.c unix: factor out reusable sysinfo memory lookup 2017-05-21 16:12:14 +02:00
tcp.c tcp: add uv_tcp_close_reset method 2019-08-19 23:41:15 +02:00
thread.c build: fix compile error with uClibc 2019-07-02 11:58:15 +02:00
tty.c stream: autodetect direction 2018-09-19 18:19:28 +02:00
udp.c unix: fix {Net,Open}BSD build 2019-09-25 14:46:24 +02:00