commit a50d776d2cbddcc0f960cdc879f47d3aab91327b parent b6bbbc6b2e8676a79ae928a7fd47e334ed6af5dc Author: NunoSempere <nuno.sempere@protonmail.com> Date: Fri, 12 Jan 2024 19:08:12 +0100 add comment on size of the C stack Diffstat:
| M | squiggle_more.c | | | 2 | +- |
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/squiggle_more.c b/squiggle_more.c @@ -44,7 +44,7 @@ void sampler_parallel(double (*sampler)(uint64_t* seed), double* results, int n_ // uint64_t** seeds = malloc((size_t)n_threads * sizeof(uint64_t*)); seed_cache_box* cache_box = (seed_cache_box*) malloc(sizeof(seed_cache_box) * (size_t)n_threads); - // seed_cache_box cache_box[n_threads]; + // seed_cache_box cache_box[n_threads]; // we could use the C stack. On normal linux machines, it's 8MB ($ ulimit -s). However, it doesn't quite feel right. srand(1); for (int i = 0; i < n_threads; i++) { // Constraints: