aboutsummaryrefslogtreecommitdiffstats
path: root/research/experiments/047-leaf-commit/model.py
diff options
context:
space:
mode:
authoreunhhu <[email protected]>2026-10-19 14:50:05 +0100
committereunhhu <[email protected]>2026-10-19 14:50:05 +0100
commit91ab9a09db49be3c6f1259d3ef453c893b7ba0bd (patch)
treef9ab680d6ec750e3e003019fff568c6ee6a68ade /research/experiments/047-leaf-commit/model.py
parent0f8c2ec7f98ed34f5567a168147737442d93f9fc (diff)
downloadpure-master.tar.gz
pure-master.zip
030: the numbers from one build (the runtime 40,847 and the hand path 813, cycles 15,735 and 348, beside Vega's 251 and 93; other builds 1-2% apart) and 602 named as the substituted algorithm (373 cycles); 9.43x said to be the emitted chain's factor, the executor's share step 1's first measurement; 009's tension stated once (sparse updates in the log's delta, whole numbers zigzag there: a second shape, the cheaper one); the caveats of 047 together; model.py's import where imports goHEADmaster
Diffstat (limited to 'research/experiments/047-leaf-commit/model.py')
-rw-r--r--research/experiments/047-leaf-commit/model.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/research/experiments/047-leaf-commit/model.py b/research/experiments/047-leaf-commit/model.py
index 9d9e890..d872432 100644
--- a/research/experiments/047-leaf-commit/model.py
+++ b/research/experiments/047-leaf-commit/model.py
@@ -40,15 +40,15 @@ units (or the log kept for updates alone), not one.
model.py WORKLOAD MESSAGES one JSON line a way and grouping"""
import json
+import os
import random
import sys
HEADER, INNER, FANOUT, RECORD, PER_LIST, SLOTS, SLACK = 40, 680, 32, 128, 16, 8192, 1 << 20
ENTRY = 20 # a child entry written into a parent in place: its pointer (8), count before (4) and key (8)
KEEP_EVERY, KEPT = 64, 16
-DELTAS, DELTA = 8, 16 # delta: a leaf's room for changes after its cells (u32 place, u8 field, pad, the 8-byte cell)
-import os # noqa: E402
-DELTAS = int(os.environ.get('MODEL_DELTAS', DELTAS))
+DELTA = 16 # delta: a change in a leaf's room after its cells (u32 place, u8 field, pad, the 8-byte cell)
+DELTAS = int(os.environ.get('MODEL_DELTAS', 8)) # the room's changes (MODEL_DELTAS: 8 unless set)
class List: