I sped up my Kamal deploys by nearly 2x with Optimistic Builds™
The problem: most of the deploy time is waiting for the Docker image to build. But CI usually passes anyway, so why wait?
The fix:
1️⃣ Build the image in parallel with CI and pre-pull it to the server
2️⃣ Once CI passes, deploy the already-pulled image