cosmopolitan/libc/nt
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
..
advapi32 Make improvements 2024-02-12 10:23:00 -08:00
API-MS-Win-Core-Synch-l1-2-0 Add OpenMP support 2024-01-28 22:39:02 -08:00
BCryptPrimitives Make improvements 2024-02-12 10:23:00 -08:00
comdlg32 Add OpenMP support 2024-01-28 22:39:02 -08:00
enum Rerun clang-format on the repo (#1217) 2024-06-15 16:34:48 -04:00
gdi32 Add OpenMP support 2024-01-28 22:39:02 -08:00
iphlpapi Add OpenMP support 2024-01-28 22:39:02 -08:00
kernel32 Add VirtualAlloc2 WIN32 API 2024-05-04 23:26:40 -07:00
nt Reduce header complexity 2023-11-28 14:39:42 -08:00
ntdll Add OpenMP support 2024-01-28 22:39:02 -08:00
pdh Add OpenMP support 2024-01-28 22:39:02 -08:00
PowrProf Add OpenMP support 2024-01-28 22:39:02 -08:00
psapi Add OpenMP support 2024-01-28 22:39:02 -08:00
struct Run clang-format (#1197) 2024-06-01 16:30:43 -04:00
thunk Walk back most uses of __STRICT_ANSI__ 2024-02-27 04:09:49 -08:00
typedef Reduce header complexity 2023-11-28 14:39:42 -08:00
user32 Add OpenMP support 2024-01-28 22:39:02 -08:00
ws2_32 Add OpenMP support 2024-01-28 22:39:02 -08:00
accounting.h Reduce header complexity 2023-11-28 14:39:42 -08:00
automation.h Reduce header complexity 2023-11-28 14:39:42 -08:00
BUILD.mk Make improvements 2024-02-12 10:23:00 -08:00
codegen.h Make improvements 2020-12-01 03:43:40 -08:00
codegen.sh more modeline errata (#1019) 2023-12-16 23:07:10 -05:00
comdlg.h Reduce header complexity 2023-11-28 14:39:42 -08:00
comms.h Reduce header complexity 2023-11-28 14:39:42 -08:00
console.h Add WIN32 pseudo console APIs 2023-12-10 01:29:25 -08:00
createfile.h Reduce header complexity 2023-11-28 14:39:42 -08:00
debug.h Reduce header complexity 2023-11-28 14:39:42 -08:00
dll.h Resurrect <windows.h> as <windowsesque.h> 2024-02-21 16:41:11 -08:00
efi.h Reduce header complexity 2023-11-28 14:39:42 -08:00
errors.h Run clang-format on most sources 2023-04-27 05:44:32 -07:00
events.h Resurrect <windows.h> as <windowsesque.h> 2024-02-21 16:41:11 -08:00
files.h Reduce header complexity 2023-11-28 14:39:42 -08:00
iocp.h Reduce header complexity 2023-11-28 14:39:42 -08:00
ipc.h Reduce header complexity 2023-11-28 14:39:42 -08:00
iphlpapi.h Reduce header complexity 2023-11-28 14:39:42 -08:00
master.sh Add VirtualAlloc2 WIN32 API 2024-05-04 23:26:40 -07:00
memory.h Make realloc() go 100x faster on Linux/NetBSD 2024-07-07 12:40:30 -07:00
messagebox.h Reduce header complexity 2023-11-28 14:39:42 -08:00
ntdll.h Reduce header complexity 2023-11-28 14:39:42 -08:00
ntdllimport.h Fix more vi modelines (#1006) 2023-12-13 02:28:11 -05:00
ntdllimport.S Fix more vi modelines (#1006) 2023-12-13 02:28:11 -05:00
paint.h Reduce header complexity 2023-11-28 14:39:42 -08:00
pdh.h Reduce header complexity 2023-11-28 14:39:42 -08:00
pedef.internal.h Rerun clang-format on the repo (#1217) 2024-06-15 16:34:48 -04:00
privilege.h Release Cosmopolitan v3.3 2024-02-20 13:27:59 -08:00
process.h Reduce header complexity 2023-11-28 14:39:42 -08:00
registry.h Reduce header complexity 2023-11-28 14:39:42 -08:00
runtime.h Make improvements 2024-02-12 10:23:00 -08:00
signals.h Reduce header complexity 2023-11-28 14:39:42 -08:00
startupinfo.h Reduce header complexity 2023-11-28 14:39:42 -08:00
synchronization.h Introduce getcpu() system call from glibc 2024-02-21 18:17:20 -08:00
system.h Reduce header complexity 2023-11-28 14:39:42 -08:00
systeminfo.h Reduce header complexity 2023-11-28 14:39:42 -08:00
sysv2nt.S Fix more vi modelines (#1006) 2023-12-13 02:28:11 -05:00
thread.h Reduce header complexity 2023-11-28 14:39:42 -08:00
time.h Implement proper time zone support 2024-05-04 23:06:37 -07:00
windows.h Reduce header complexity 2023-11-28 14:39:42 -08:00
winsock.h Reduce header complexity 2023-11-28 14:39:42 -08:00