From 91ab9a09db49be3c6f1259d3ef453c893b7ba0bd Mon Sep 17 00:00:00 2001 From: eunhhu Date: Mon, 19 Oct 2026 14:50:05 +0100 Subject: 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 go --- research/experiments/047-leaf-commit/model.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'research') 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: -- cgit v1.2.3