Skip to content

v0.6.2

Choose a tag to compare

@mavdol mavdol released this 24 Feb 10:43
· 216 commits to main since this release
14aaa56

AOT Precompilation

This release adds a new command to precompile your tasks ahead of time, so every capsule run starts instantly.

What's New

capsule build main.py

Before

The first call always pays the compilation cost.

capsule run main.py   # ~6s (Build + run)
capsule run main.py   # ~5ms (cached)
capsule run main.py   # ~5ms (cached)

After

capsule build main.py   # ~5s (one-time precompilation)
capsule run main.py     # ~5ms
capsule run main.py     # ~5ms
capsule run main.py     # ~5ms

Note

AOT compilation is available for both Python and TypeScript.