cosmopolitan/libc/proc
Justine Tunney f7780de24b
Make realloc() go 100x faster on Linux/NetBSD
Cosmopolitan now supports mremap(), which is only supported on Linux and
NetBSD. First, it allows memory mappings to be relocated without copying
them; this can dramatically speed up data structures like std::vector if
the array size grows larger than 256kb. The mremap() system call is also
10x faster than munmap() when shrinking large memory mappings.

There's now two functions, getpagesize() and getgransize() which help to
write portable code that uses mmap(MAP_FIXED). Alternative sysconf() may
be called with our new _SC_GRANSIZE. The madvise() system call now has a
better wrapper with improved documentation.
2024-07-07 12:40:30 -07:00
..
BUILD.mk Reduce code size of mandatory runtime 2024-07-04 02:50:20 -07:00
clock.c Implement proper time zone support 2024-05-04 23:06:37 -07:00
cocmd.c Apply clang-format update to repo (#1154) 2024-04-25 10:38:00 -07:00
daemon.c flip et / noet in modelines 2023-12-07 22:17:11 -05:00
describefds.c Apply clang-format update to repo (#1154) 2024-04-25 10:38:00 -07:00
describefds.internal.h Add dontthrow attribute to most libc functions 2024-01-09 01:26:03 -08:00
execl.c Apply clang-format update to repo (#1154) 2024-04-25 10:38:00 -07:00
execle.c Apply clang-format update to repo (#1154) 2024-04-25 10:38:00 -07:00
execlp.c Apply clang-format update to repo (#1154) 2024-04-25 10:38:00 -07:00
execv.c flip et / noet in modelines 2023-12-07 22:17:11 -05:00
execve-nt.greg.c Support shebang on Windows 2024-05-20 22:11:42 -07:00
execve-sysv.c Apply clang-format update to repo (#1154) 2024-04-25 10:38:00 -07:00
execve.c Delete ASAN 2024-06-22 05:45:49 -07:00
execve.internal.h Add dontthrow attribute to most libc functions 2024-01-09 01:26:03 -08:00
execvp.c flip et / noet in modelines 2023-12-07 22:17:11 -05:00
execvpe.c Delete ASAN 2024-06-22 05:45:49 -07:00
fexecve.c Delete ASAN 2024-06-22 05:45:49 -07:00
fork-nt.c Make realloc() go 100x faster on Linux/NetBSD 2024-07-07 12:40:30 -07:00
fork-sysv.c Introduce FreeBSD ARM64 support 2023-12-29 20:14:02 -08:00
fork.c Fix MODE=tinylinux build 2024-07-06 01:51:08 -07:00
getpriority-nt.c flip et / noet in modelines 2023-12-07 22:17:11 -05:00
getpriority.c flip et / noet in modelines 2023-12-07 22:17:11 -05:00
getrusage-nt.c flip et / noet in modelines 2023-12-07 22:17:11 -05:00
getrusage-sysv.c flip et / noet in modelines 2023-12-07 22:17:11 -05:00
getrusage.c Delete ASAN 2024-06-22 05:45:49 -07:00
handle.c flip et / noet in modelines 2023-12-07 22:17:11 -05:00
kill-nt.c Apply clang-format update to repo (#1154) 2024-04-25 10:38:00 -07:00
kill.c flip et / noet in modelines 2023-12-07 22:17:11 -05:00
killpg.c Apply clang-format update to repo (#1154) 2024-04-25 10:38:00 -07:00
nice.c Apply clang-format update to repo (#1154) 2024-04-25 10:38:00 -07:00
ntspawn.h Support shebang on Windows 2024-05-20 22:11:42 -07:00
posix_spawn.c Make mmap() scalable 2024-07-05 23:26:00 -07:00
posix_spawn.h Add dontthrow attribute to most libc functions 2024-01-09 01:26:03 -08:00
posix_spawn.internal.h Reduce header complexity 2023-11-28 14:39:42 -08:00
posix_spawn_add_file_action.c Apply clang-format update to repo (#1154) 2024-04-25 10:38:00 -07:00
posix_spawn_file_actions_addchdir_np.c Apply clang-format update to repo (#1154) 2024-04-25 10:38:00 -07:00
posix_spawn_file_actions_addclose.c Apply clang-format update to repo (#1154) 2024-04-25 10:38:00 -07:00
posix_spawn_file_actions_adddup2.c Apply clang-format update to repo (#1154) 2024-04-25 10:38:00 -07:00
posix_spawn_file_actions_addfchdir_np.c Apply clang-format update to repo (#1154) 2024-04-25 10:38:00 -07:00
posix_spawn_file_actions_addopen.c Apply clang-format update to repo (#1154) 2024-04-25 10:38:00 -07:00
posix_spawn_file_actions_destroy.c flip et / noet in modelines 2023-12-07 22:17:11 -05:00
posix_spawn_file_actions_init.c flip et / noet in modelines 2023-12-07 22:17:11 -05:00
posix_spawnattr_destroy.c flip et / noet in modelines 2023-12-07 22:17:11 -05:00
posix_spawnattr_getflags.c flip et / noet in modelines 2023-12-07 22:17:11 -05:00
posix_spawnattr_getpgroup.c flip et / noet in modelines 2023-12-07 22:17:11 -05:00
posix_spawnattr_getrlimit.c flip et / noet in modelines 2023-12-07 22:17:11 -05:00
posix_spawnattr_getschedparam.c flip et / noet in modelines 2023-12-07 22:17:11 -05:00
posix_spawnattr_getschedpolicy.c flip et / noet in modelines 2023-12-07 22:17:11 -05:00
posix_spawnattr_getsigdefault.c flip et / noet in modelines 2023-12-07 22:17:11 -05:00
posix_spawnattr_getsigmask.c flip et / noet in modelines 2023-12-07 22:17:11 -05:00
posix_spawnattr_init.c flip et / noet in modelines 2023-12-07 22:17:11 -05:00
posix_spawnattr_setflags.c flip et / noet in modelines 2023-12-07 22:17:11 -05:00
posix_spawnattr_setpgroup.c flip et / noet in modelines 2023-12-07 22:17:11 -05:00
posix_spawnattr_setrlimit.c flip et / noet in modelines 2023-12-07 22:17:11 -05:00
posix_spawnattr_setschedparam.c flip et / noet in modelines 2023-12-07 22:17:11 -05:00
posix_spawnattr_setschedpolicy.c flip et / noet in modelines 2023-12-07 22:17:11 -05:00
posix_spawnattr_setsigdefault.c flip et / noet in modelines 2023-12-07 22:17:11 -05:00
posix_spawnattr_setsigmask.c flip et / noet in modelines 2023-12-07 22:17:11 -05:00
posix_spawnp.c Apply clang-format update to repo (#1154) 2024-04-25 10:38:00 -07:00
proc.c Introduce ctl::set and ctl::map 2024-06-23 22:27:11 -07:00
proc.internal.h Add dontthrow attribute to most libc functions 2024-01-09 01:26:03 -08:00
sched_getaffinity.c flip et / noet in modelines 2023-12-07 22:17:11 -05:00
sched_setaffinity.c flip et / noet in modelines 2023-12-07 22:17:11 -05:00
setpriority-nt.c Apply clang-format update to repo (#1154) 2024-04-25 10:38:00 -07:00
setpriority.c flip et / noet in modelines 2023-12-07 22:17:11 -05:00
system.c Apply clang-format update to repo (#1154) 2024-04-25 10:38:00 -07:00
systemvpe.c flip et / noet in modelines 2023-12-07 22:17:11 -05:00
times.c Implement proper time zone support 2024-05-04 23:06:37 -07:00
verynice.c flip et / noet in modelines 2023-12-07 22:17:11 -05:00
vfork.S Make dlmalloc 2.4x faster for multithreading 2024-05-28 11:18:34 -07:00
wait.c flip et / noet in modelines 2023-12-07 22:17:11 -05:00
wait3.c flip et / noet in modelines 2023-12-07 22:17:11 -05:00
wait4-nt.c Apply clang-format update to repo (#1154) 2024-04-25 10:38:00 -07:00
wait4-sysv.c flip et / noet in modelines 2023-12-07 22:17:11 -05:00
wait4.c Delete ASAN 2024-06-22 05:45:49 -07:00
waitpid.c flip et / noet in modelines 2023-12-07 22:17:11 -05:00