cosmopolitan/tool/plinko/lib
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
..
algebra.lisp Add LISP interpreter 2022-04-07 20:30:22 -07:00
assoc.c flip et / noet in modelines 2023-12-07 22:17:11 -05:00
binarytrees.lisp Add LISP interpreter 2022-04-07 20:30:22 -07:00
bind.c flip et / noet in modelines 2023-12-07 22:17:11 -05:00
BUILD.mk more modeline errata (#1019) 2023-12-16 23:07:10 -05:00
char.c Apply clang-format update to repo (#1154) 2024-04-25 10:38:00 -07:00
char.h Reduce header complexity 2023-11-28 14:39:42 -08:00
cmp.c Apply clang-format update to repo (#1154) 2024-04-25 10:38:00 -07:00
config.h Reduce header complexity 2023-11-28 14:39:42 -08:00
cons.c Apply clang-format update to repo (#1154) 2024-04-25 10:38:00 -07:00
cons.h Reduce header complexity 2023-11-28 14:39:42 -08:00
countatoms.c Apply clang-format update to repo (#1154) 2024-04-25 10:38:00 -07:00
countreferences.c flip et / noet in modelines 2023-12-07 22:17:11 -05:00
define.c Apply clang-format update to repo (#1154) 2024-04-25 10:38:00 -07:00
desymbolize.c flip et / noet in modelines 2023-12-07 22:17:11 -05:00
dispatchycombine.c Apply clang-format update to repo (#1154) 2024-04-25 10:38:00 -07:00
enclose.c flip et / noet in modelines 2023-12-07 22:17:11 -05:00
error.c Run clang-format (#1197) 2024-06-01 16:30:43 -04:00
error.h Reduce header complexity 2023-11-28 14:39:42 -08:00
evlis.c Apply clang-format update to repo (#1154) 2024-04-25 10:38:00 -07:00
expand.c Apply clang-format update to repo (#1154) 2024-04-25 10:38:00 -07:00
findfreevariables.c flip et / noet in modelines 2023-12-07 22:17:11 -05:00
flush.c flip et / noet in modelines 2023-12-07 22:17:11 -05:00
gc.c Apply clang-format update to repo (#1154) 2024-04-25 10:38:00 -07:00
gc.h Run clang-format (#1197) 2024-06-01 16:30:43 -04:00
getlongsum.c flip et / noet in modelines 2023-12-07 22:17:11 -05:00
hasatom.c Apply clang-format update to repo (#1154) 2024-04-25 10:38:00 -07:00
histo.c Run clang-format (#1197) 2024-06-01 16:30:43 -04:00
histo.h Rename _bsr/_bsf to bsr/bsf 2024-03-04 17:33:26 -08:00
index.c flip et / noet in modelines 2023-12-07 22:17:11 -05:00
index.h Run clang-format (#1197) 2024-06-01 16:30:43 -04:00
infix.lisp Add LISP interpreter 2022-04-07 20:30:22 -07:00
intern.c flip et / noet in modelines 2023-12-07 22:17:11 -05:00
iscar.c Apply clang-format update to repo (#1154) 2024-04-25 10:38:00 -07:00
iscdr.c Apply clang-format update to repo (#1154) 2024-04-25 10:38:00 -07:00
isconstant.c Apply clang-format update to repo (#1154) 2024-04-25 10:38:00 -07:00
isdelegate.c Apply clang-format update to repo (#1154) 2024-04-25 10:38:00 -07:00
isif.c Apply clang-format update to repo (#1154) 2024-04-25 10:38:00 -07:00
iswide.c flip et / noet in modelines 2023-12-07 22:17:11 -05:00
isycombinator.c Apply clang-format update to repo (#1154) 2024-04-25 10:38:00 -07:00
ktpenc.c flip et / noet in modelines 2023-12-07 22:17:11 -05:00
ktpenc.h Reduce header complexity 2023-11-28 14:39:42 -08:00
library.lisp Remove trailing whitespace from all files (#497) 2022-07-20 20:31:16 -07:00
makesclosures.c Apply clang-format update to repo (#1154) 2024-04-25 10:38:00 -07:00
ok.lisp Add LISP interpreter 2022-04-07 20:30:22 -07:00
pairlis.c Apply clang-format update to repo (#1154) 2024-04-25 10:38:00 -07:00
plan.c Apply clang-format update to repo (#1154) 2024-04-25 10:38:00 -07:00
planfuncalls.c flip et / noet in modelines 2023-12-07 22:17:11 -05:00
plinko.c Make realloc() go 100x faster on Linux/NetBSD 2024-07-07 12:40:30 -07:00
plinko.h Rerun clang-format on the repo (#1217) 2024-06-15 16:34:48 -04:00
preplan.c Apply clang-format update to repo (#1154) 2024-04-25 10:38:00 -07:00
prettyprint.c Apply clang-format update to repo (#1154) 2024-04-25 10:38:00 -07:00
print.c Run clang-format (#1197) 2024-06-01 16:30:43 -04:00
print.h Reduce header complexity 2023-11-28 14:39:42 -08:00
printchar.c Apply clang-format update to repo (#1154) 2024-04-25 10:38:00 -07:00
printf.c Implement proper time zone support 2024-05-04 23:06:37 -07:00
printf.h Reduce header complexity 2023-11-28 14:39:42 -08:00
printheap.c Apply clang-format update to repo (#1154) 2024-04-25 10:38:00 -07:00
printint.c Apply clang-format update to repo (#1154) 2024-04-25 10:38:00 -07:00
printtree.c flip et / noet in modelines 2023-12-07 22:17:11 -05:00
printvars.c Apply clang-format update to repo (#1154) 2024-04-25 10:38:00 -07:00
read.c Apply clang-format update to repo (#1154) 2024-04-25 10:38:00 -07:00
readstring.c flip et / noet in modelines 2023-12-07 22:17:11 -05:00
reverse.c flip et / noet in modelines 2023-12-07 22:17:11 -05:00
setup.c flip et / noet in modelines 2023-12-07 22:17:11 -05:00
stack.h Reduce header complexity 2023-11-28 14:39:42 -08:00
symbolize.c Apply clang-format update to repo (#1154) 2024-04-25 10:38:00 -07:00
trace.c flip et / noet in modelines 2023-12-07 22:17:11 -05:00
trace.h Reduce header complexity 2023-11-28 14:39:42 -08:00
tree.c Apply clang-format update to repo (#1154) 2024-04-25 10:38:00 -07:00
tree.h Reduce header complexity 2023-11-28 14:39:42 -08:00
types.h Reduce header complexity 2023-11-28 14:39:42 -08:00
vars.c flip et / noet in modelines 2023-12-07 22:17:11 -05:00