Make redbean tinier

Under MODE=tiny or MODE=tinylinux we now go back to using my homebrew
version of DEFLATE decompression which is 10x smaller but 10x slower
than Chromium Zlib. In tiny mode we also disable compressed responses
howewver redbean will still serve precompressed responses. This change
also removes a few other dependencies like strftime() and getaddrinfo()
which means you can't say `-l localhost` in tiny mode, you have to say
something like `-l 127.0.0.1`.

    m=tinylinux
    make -j8 MODE=$m o/$m/tool/net/redbean-original.com
    ls -hal o/$m/tool/net/redbean-original.com

This change reduces the above size from 191.4 to 150.9 kb.
This commit is contained in:
Justine Tunney 2021-07-04 12:21:29 -07:00
parent 300876ee50
commit a7bd4ed9ea
8 changed files with 123 additions and 46 deletions

View file

@ -22,7 +22,7 @@
#include "libc/dce.h"
/**
* Creates new process zygote style.
* Creates new process.
*
* @return 0 to child, child pid to parent, or -1 on error
* @asyncsignalsafe