cosmopolitan/libc/fmt
Justine Tunney 398f0c16fb Add SNI support to redbean and improve SSL perf
This change makes SSL virtual hosting possible. You can now load
multiple certificates for multiple domains and redbean will just
figure out which one to use, even if you only have 1 ip address.
You can also use a jumbo certificate that lists all your domains
in the the subject alternative names.

This change also makes performance improvements to MbedTLS. Here
are some benchmarks vs. cc1920749e

                                   BEFORE    AFTER   (microsecs)
suite_ssl.com                     2512881   191738 13.11x faster
suite_pkparse.com                   36291     3295 11.01x faster
suite_x509parse.com                854669   120293  7.10x faster
suite_pkwrite.com                    6549     1265  5.18x faster
suite_ecdsa.com                     53347    18778  2.84x faster
suite_pk.com                        49051    18717  2.62x faster
suite_ecdh.com                      19535     9502  2.06x faster
suite_shax.com                      15848     7965  1.99x faster
suite_rsa.com                      353257   184828  1.91x faster
suite_x509write.com                162646    85733  1.90x faster
suite_ecp.com                       20503    11050  1.86x faster
suite_hmac_drbg.no_reseed.com       19528    11417  1.71x faster
suite_hmac_drbg.nopr.com            12460     8010  1.56x faster
suite_mpi.com                      687124   442661  1.55x faster
suite_hmac_drbg.pr.com              11890     7752  1.53x faster

There aren't any special tricks to the performance imporvements.
It's mostly due to code cleanup, assembly and intel instructions
like mulx, adox, and adcx.
2021-07-23 13:56:13 -07:00
..
abs.c Change license 2020-12-27 17:18:44 -08:00
atoi.c Fix strtol 2020-12-29 22:40:52 -08:00
atol.c Fix strtol 2020-12-29 22:40:52 -08:00
atoll.c Fix strtol 2020-12-29 22:40:52 -08:00
basename.c Change license 2020-12-27 17:18:44 -08:00
basename_n.c Change license 2020-12-27 17:18:44 -08:00
bing.c Change license 2020-12-27 17:18:44 -08:00
bing.internal.h Enhance chibicc 2020-12-09 04:00:48 -08:00
conv.h Add SNI support to redbean and improve SSL perf 2021-07-23 13:56:13 -07:00
convertmicros.c Change license 2020-12-27 17:18:44 -08:00
dirname.c Apply some touchups 2021-02-07 07:02:46 -08:00
div.c Change license 2020-12-27 17:18:44 -08:00
dosdatetimetounix.c Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
fcvt.c Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
filetimetotime.c Get all tests passing on NetBSD 2021-02-05 09:49:28 -08:00
filetimetotimespec.c Get all tests passing on NetBSD 2021-02-05 09:49:28 -08:00
filetimetotimeval.c Get all tests passing on NetBSD 2021-02-05 09:49:28 -08:00
fmt.c Add SNI support to redbean and improve SSL perf 2021-07-23 13:56:13 -07:00
fmt.h Support proper %g, %f, and %a float formatting 2021-03-05 10:31:16 -08:00
fmt.mk Remove undefined behaviors 2021-05-16 11:16:28 -07:00
fmts.h Improve performance of printf functions 2021-04-24 13:58:50 -07:00
imaxabs.c Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
imaxabs.thunk.S Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
internal.h Support proper %g, %f, and %a float formatting 2021-03-05 10:31:16 -08:00
isabspath.c Change license 2020-12-27 17:18:44 -08:00
isslash.internal.h Fold conv package into fmt 2020-12-09 16:52:00 -08:00
itoa.c Support proper %g, %f, and %a float formatting 2021-03-05 10:31:16 -08:00
itoa.h Fold conv package into fmt 2020-12-09 16:52:00 -08:00
itoa64.c Remove undefined behaviors 2021-05-16 11:16:28 -07:00
itoa64fixed16.greg.c Change license 2020-12-27 17:18:44 -08:00
itoa64radix8.c Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
itoa64radix10.greg.c Remove undefined behaviors 2021-05-16 11:16:28 -07:00
itoa64radix16.greg.c Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
itoa128radix10.greg.c Remove undefined behaviors 2021-05-16 11:16:28 -07:00
kerrornames.S Make redbean StoreAsset() work better 2021-05-14 05:44:37 -07:00
kmonthyearday.c Change license 2020-12-27 17:18:44 -08:00
labs.c Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
ldiv.c Change license 2020-12-27 17:18:44 -08:00
leb128.h Make Cosmopolitan ANSI C89 compatible 2021-02-03 17:48:59 -08:00
llabs.c Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
lldiv.c Change license 2020-12-27 17:18:44 -08:00
ntoa.c Improve performance of printf functions 2021-04-24 13:58:50 -07:00
pad.c Improve performance of printf functions 2021-04-24 13:58:50 -07:00
pflink.h Add SSL to redbean 2021-06-24 13:20:50 -07:00
sleb128.c Change license 2020-12-27 17:18:44 -08:00
snprintf.c Support proper %g, %f, and %a float formatting 2021-03-05 10:31:16 -08:00
sprintf.c Support proper %g, %f, and %a float formatting 2021-03-05 10:31:16 -08:00
sscanf.c Change license 2020-12-27 17:18:44 -08:00
stoa.c Support OnHttpRequest Lua callback 2021-04-24 17:27:12 -07:00
strerror.c Change license 2020-12-27 17:18:44 -08:00
strerror_r.c Reduce number of disk seeks in redbean 2021-05-03 01:21:50 -07:00
stripexts.c Add SNI support to redbean and improve SSL perf 2021-07-23 13:56:13 -07:00
strtoimax.c Set errno when out of range in strtoimax (#111) 2021-03-07 14:38:56 -08:00
strtol.c Set errno in strtol family of functions (#110) 2021-03-07 14:18:08 -08:00
strtoll.c Set errno in strtol family of functions (#110) 2021-03-07 14:18:08 -08:00
strtonum.c Change license 2020-12-27 17:18:44 -08:00
strtoul.c Set errno in strtol family of functions (#110) 2021-03-07 14:18:08 -08:00
strtoull.c Set errno in strtol family of functions (#110) 2021-03-07 14:18:08 -08:00
strtoumax.c Fix int parsing with base 2 and 16 (#107) 2021-03-06 21:12:32 -08:00
timespectofiletime.c Change license 2020-12-27 17:18:44 -08:00
timetofiletime.c Change license 2020-12-27 17:18:44 -08:00
timevaltofiletime.c Change license 2020-12-27 17:18:44 -08:00
unbing.c Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
unhexbuf.c Change license 2020-12-27 17:18:44 -08:00
unsleb128.c Change license 2020-12-27 17:18:44 -08:00
vcscanf.c Get codebase completely working with LLVM 2021-02-09 02:57:32 -08:00
vsnprintf.c Improve performance of printf functions 2021-04-24 13:58:50 -07:00
vsprintf.c Support proper %g, %f, and %a float formatting 2021-03-05 10:31:16 -08:00
vsscanf.c Change license 2020-12-27 17:18:44 -08:00
wcstoimax.c Change license 2020-12-27 17:18:44 -08:00
wcstol.c Support proper %g, %f, and %a float formatting 2021-03-05 10:31:16 -08:00