haiku/headers/private/libroot
Augustin Cavalier 0d7d1fccff libroot: Implement the general case of posix_spawn using load_image.
The goal here is to avoid potentially expensive fork()ing.

The time for a fork() is (for a process with no real heap usage
and thus few areas) 300-400us on my system. load_image() takes
3000us (3ms) or so, but this of course includes exec() time.

Overall, for compiling HaikuDepot (with a tweaked jam to use
posix_spawn on Haiku, not just on Linux) there is a slight
decrease in time:

before:
real 1m21.727s
user 1m2.131s
sys  0m43.029s

after:
real 1m19.472s
user 1m1.752s
sys  0m41.740s

Which is probably within the realm of "noise", so more benchmarks
are needed. Likely if we tweak our jam usage to not need as many
shells when running commands, this would be a much more noticeable
change.

Change-Id: I217f2476b1ed9aa18322b3c2bc8986571d89549a
2020-05-30 01:19:48 -04:00
..
locale ICU locale backend: Increase size of fLocaleDescription from 512 to 1024 bytes. 2018-05-19 20:44:51 -04:00
time
dirent_private.h
errno_private.h
ErrnoMaintainer.h
extended_system_info.h Fix clang warning "mismatched-tags" 2020-03-23 01:30:23 +00:00
fork.h
image_private.h
launch.h
libroot_private.h libroot: Implement the general case of posix_spawn using load_image. 2020-05-30 01:19:48 -04:00
mathimpl.h
memory_private.h
pthread_private.h libroot: Expose the internal mutex_lock for private consumption. 2019-07-27 18:32:18 -04:00
SHA256.h Move SHA256 class to libroot instead of linking libshared into libroot. 2017-10-03 20:18:26 -04:00
signal_private.h
stdlib_private.h
system_revision.h
time_private.h
times_private.h
trig.h
umask.h
unistd_private.h
user_group.h Bump MAX_SHADOW_PWD_PASSWORD_LEN 2017-11-23 13:00:48 +01:00
user_thread.h user_thread.h: use struct keyword to be usable in C. 2016-12-17 20:17:38 +01:00
wchar_private.h