skoro v0.0.0

Free the constants a retirement leaves with no consumer

A retirement removed the retired quantities and every node computed from them, but never a constant, or a value folded from constants, since those are computed from no quantity: the scales, the anchors, and each replacement's matrix and right-hand side stayed in the model after the factor that used them was gone, and the sliding_window example's model grew from 854 nodes after tick 9 to 4,121 after tick 79. This entry has a retirement also free every node it leaves needed by nothing, one that is no quantity, has no consumer, and is held by no term, binding, sampler, proposal or pin, by reference counting from what the change touched. The mathematics shows that this removes nothing a term, sampler or proposal reads and changes no value of the model, and that a model's size is then bounded by what its current quantities, terms and pins need. It decided that a handle the user holds does not keep its node, and added scope::pin and scope::unpin for the nodes that must be kept, such as a constant made once for a whole run. The sliding window now holds at most 680 nodes, and checks that the count stopped growing.

Feature Done Started 2026-11-11 · finished 2026-11-11

A retirement removed the retired quantities and every node computed from them, but never a constant, or a value folded from constants, since those are computed from no quantity: the scales, the anchors, and each replacement’s matrix and right-hand side stayed in the model after the factor that used them was gone, and the sliding_window example’s model grew from 854 nodes after tick 9 to 4,121 after tick 79. This entry has a retirement also free every node it leaves needed by nothing, one that is no quantity, has no consumer, and is held by no term, binding, sampler, proposal or pin, by reference counting from what the change touched. The mathematics shows that this removes nothing a term, sampler or proposal reads and changes no value of the model, and that a model’s size is then bounded by what its current quantities, terms and pins need. It decided that a handle the user holds does not keep its node, and added scope::pin and scope::unpin for the nodes that must be kept, such as a constant made once for a whole run. The sliding window now holds at most 680 nodes, and checks that the count stopped growing.

Where it stands

  1. Mathematics
  2. Implementation
  3. Plan
  4. Build
  5. Publish

Documents

What it changed

The pages that say what this entry made true:

The crates it changed:

What it revises

History

  1. Started at math
  2. Approved math 8601ef8
  3. Reopened math 57a91ec The nodes a model holds outside the compilation graph's edges omitted each sampler's inputs and log-density, so a retirement could free a node a surviving term's sampler reads.
  4. Approved math 50c685b
  5. Approved implementation 082a3da
  6. Approved plan 894152a
  7. Approved build efea3b2
  8. Approved publish 91c9b94