mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-06-27 23:08:31 +00:00
Introduce libc/mem/tinymalloc.inc
This allocator shaves ~20kb off single-threaded tool programs and is slightly faster than proper malloc for simple non-demanding programs
This commit is contained in:
parent
3bf95ae7ec
commit
a6ecbb747d
17 changed files with 201 additions and 37 deletions
|
@ -50,6 +50,8 @@ static const char *prog;
|
|||
static char16_t **filters;
|
||||
static uint32_t pids[10000];
|
||||
|
||||
#include "libc/mem/tinymalloc.inc"
|
||||
|
||||
static wontreturn void PrintUsage(int rc, FILE *f) {
|
||||
fprintf(f,
|
||||
"Usage: %s [-nshv] NAME...\n"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue