Incremental Rewrite Granularity

The insight that the risk and cost of a rewrite scale with the unit of change โ€” full- system rewrites are riskiest, microservice extraction is safer, and function-level FFI/boundary rewrites are safer still, because the smallest unit preserves the existing contract, tests, and interfaces while swapping only the internals.

Also known as: ffi refactoring, function-level rewrite, granularity of rewrite, foreign function interface refactoring

How authors use it

Oldest first (extraction date when no publication date is known).

AuthorTheir termTheir meaning
Presentation: Accelerating Performance by Incrementally Integrating Rust Into Existing Codebase
Lily Mara ยท 2026-09-10
FFI refactoringMara's own coinage for rewriting an individual function (not a service, not a whole system) in a faster language and connecting it back to the original codebase across the C Foreign Function Interface, so the migration unit is smaller than a microservice.

Documents (3)

Propositions touching this concept (3)

By publication month, oldest first (extraction month when no publication date is known).

2026-09

Open gaps (7)