incremental-cost

command
v0.9.9-dev.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 4, 2026 License: Apache-2.0 Imports: 9 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL