Skip to content

feat: Incremental builds, with an in-memory read cache#49

Open
kevinrenskers wants to merge 2 commits intodevelopfrom
feat/keep-running
Open

feat: Incremental builds, with an in-memory read cache#49
kevinrenskers wants to merge 2 commits intodevelopfrom
feat/keep-running

Conversation

@kevinrenskers
Copy link
Member

@kevinrenskers kevinrenskers commented Mar 19, 2026

Instead of saga dev always starting a brand new build on every file change, Saga is now kept alive and just reruns the pipeline, while caching the entire read step. If you only change a markdown file, only that one markdown file has to be read and processed, the rest comes from the cache. It makes things a LOT faster, also when working on CSS changes for example.

When a Swift file is changed, the build is compiled and started again.

It does mean that simply putting code above or below your Saga pipeline now longer works; it now has to be part of the pipeline so it can be executed every cycle. For this the new beforeRead and afterWrite hooks are introduced.

This feature will depend on a new release of saga-cli (see loopwerk/saga-cli#1), and will be a major version bump.

…y file change, Saga is now kept alive and just reruns the pipeline, while caching the entire read step
@kevinrenskers kevinrenskers changed the title feat: keep Saga running with an in-memory read cache feat: Incremental builds, with an in-memory read cache Mar 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant