mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-02-07 15:03:34 +00:00
This change adds a TLS freelist for small dynamic memory allocations. Cosmopolitan's TIB is now 512 bytes in size. Single-threaded malloc() performance isn't impacted by this, until pthread_create() is called. Single-threaded programs may also want to consider using: #include "libc/mem/tinymalloc.inc" Which will shave 30k off the executable size and sometimes go faster. |
||
---|---|---|
.. | ||
prog | ||
BUILD.mk | ||
critbit0_test.c | ||
djbsort_test.c | ||
malloc_test.c | ||
qsort_test.c | ||
realpath_test.c | ||
sortedints_test.c | ||
strdup_test.c | ||
thread_test.cc |