More stdlib; memoized CPS parser combinators workout

This commit is contained in:
Dmitry Boulytchev 2020-01-20 03:38:43 +03:00
parent b05ad7f6b1
commit 1027d988fc
10 changed files with 253 additions and 7 deletions

View file

@ -517,7 +517,7 @@ void *Lclone (void *p) {
return res;
}
# define HASH_DEPTH 10
# define HASH_DEPTH 3
# define HASH_APPEND(acc, x) (((acc + (unsigned) x) << (WORD_SIZE / 2)) | ((acc + (unsigned) x) >> (WORD_SIZE / 2)))
int inner_hash (int depth, unsigned acc, void *p) {
@ -1163,7 +1163,7 @@ extern void __gc_root_scan_stack ();
/* Mark-and-copy */
/* ======================================== */
static size_t SPACE_SIZE = 32 * 1024;
static size_t SPACE_SIZE = 32 * 10240;
// static size_t SPACE_SIZE = 128;
// static size_t SPACE_SIZE = 1024 * 1024;