aboutsummaryrefslogtreecommitdiffstats
path: root/core/module-list.h
diff options
context:
space:
mode:
authoreunhhu <[email protected]>2026-10-05 10:41:18 +0100
committereunhhu <[email protected]>2026-10-05 10:41:18 +0100
commit68a1987919d18380abd38b0b60f46a5102f0fb2b (patch)
tree92d9cb6c9c423193aac3a500fcb11ceecc14faf7 /core/module-list.h
parent7e96ef822a441145979b5b8aaa3429d600dae187 (diff)
downloadpure-68a1987919d18380abd38b0b60f46a5102f0fb2b.tar.gz
pure-68a1987919d18380abd38b0b60f46a5102f0fb2b.zip
Keep arrays' number columns as narrow as their values (u8, u32, f64; a DENSE list's keys as its slots), open a packed list's slice in code with an integer index, keep a nest of loops' values in registers of their own: BFS core 27.5 to 19.6 ms (022)
Diffstat (limited to 'core/module-list.h')
-rw-r--r--core/module-list.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/module-list.h b/core/module-list.h
index 0d4d7dc..60bce95 100644
--- a/core/module-list.h
+++ b/core/module-list.h
@@ -44,6 +44,7 @@ typedef struct {
uint8_t taken[16];
unsigned depth;
bool pathless;
+ double cells[16][32]; /* an array's narrow cells as numbers (docs/design/022) */
} PureRun;
/* A list holds up to PURE_LIST_ITEMS items, a run up to PURE_LIST_RUN. */