cosmopolitan/test/libc/runtime
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
..
prog flip et / noet in modelines 2023-12-07 22:17:11 -05:00
abort_test.c flip et / noet in modelines 2023-12-07 22:17:11 -05:00
BUILD.mk Stop using .com extension in monorepo 2024-03-03 03:12:19 -08:00
daemon_test.c flip et / noet in modelines 2023-12-07 22:17:11 -05:00
exit_test.c Make realloc() go 100x faster on Linux/NetBSD 2024-07-07 12:40:30 -07:00
ftrace_test.c Bring back gc() function 2024-01-08 10:26:28 -08:00
getdosargv_test.c Stop using .com extension in monorepo 2024-03-03 03:12:19 -08:00
getdosenviron_test.c flip et / noet in modelines 2023-12-07 22:17:11 -05:00
initorder_test.c Release Cosmopolitan v3.3 2024-02-20 13:27:59 -08:00
itsatrap_test.c flip et / noet in modelines 2023-12-07 22:17:11 -05:00
msync_test.c Apply clang-format update to repo (#1154) 2024-04-25 10:38:00 -07:00
sigsetjmp_test.c flip et / noet in modelines 2023-12-07 22:17:11 -05:00
tls_test.c Delete ASAN 2024-06-22 05:45:49 -07:00
zipos_test.c Fix bugs with new memory manager 2024-06-29 10:53:57 -07:00