Skip to main content

5 posts tagged with "reactivity"

View All Tags

Pull or push, measured at three depths

· 5 min read

A derivation finds out it is stale either because the read asks its sources, or because the write already marked it. OIMDB asks at the read. One recorded piece puts both against each other at chain depths 1, 2 and 3, with everything else held still: the read-side check is 1.67× cheaper at depth 1, the two are inside the instrument's error at depth 2, and the write-side mark is 1.70× cheaper at depth 3.

When a computed pays for itself

· 5 min read

A computed caches a derivation so that reads between two writes do not repeat it. It also costs something to hold. One recorded piece prices a computed against calling the same function in the consumer's body, along two axes — how dear the body is, and how many reads fall between two writes — and the answer depends on both: 21.4× cheaper for a 128-row walk read sixty-four times per write, 2.50× dearer for a one-field body read eight times.