Documentation
¶
Overview ¶
Command incremental-cost measures what the delta route could save.
The question this answers is not "how fast is a delta" -- nothing calls the delta route, so there is no such measurement to take. It is the prior question: the delta route skips exactly one step of a full pass, writing the canonical graph from scratch, and still pays every other one. So the ceiling on any saving is fixed by what it keeps, and what it keeps is measurable today against a real generated database.
It reports the three costs applyDeltaRoute pays on every delta regardless of how small the edit was: reading the mutated table counts, refreshing the snapshot digest, and rebuilding the complete HotSnapshot. Each one scales with the corpus and not with the edit, which is what makes them a ceiling rather than an overhead.