RORK LABJP
TOOLING — Rork's developer repos keep moving: rork-xcode was updated on July 16, rork-device on July 15, and rork-plist on July 13OPUS46 — Claude Opus 4.6 is live in Rork, and Rork Max is built to assemble apps on top of Claude CodeSIM — A cloud iOS simulator runs in the browser, with one click to install on a device and two clicks to publish to the App StoreMAX — Rork Max emits pure Swift rather than React Native, reaching iPhone, iPad, Apple Watch, Apple TV, Vision Pro, and even iMessageNATIVE — That opens up HealthKit, ARKit and LiDAR, NFC, Dynamic Island, Live Activities, 3D through Metal, and on-device inference with Core MLSEED — Rork raised a $15M seed led by Left Lane Capital, with Peak XV and a16z Speedrun joining the roundTOOLING — Rork's developer repos keep moving: rork-xcode was updated on July 16, rork-device on July 15, and rork-plist on July 13OPUS46 — Claude Opus 4.6 is live in Rork, and Rork Max is built to assemble apps on top of Claude CodeSIM — A cloud iOS simulator runs in the browser, with one click to install on a device and two clicks to publish to the App StoreMAX — Rork Max emits pure Swift rather than React Native, reaching iPhone, iPad, Apple Watch, Apple TV, Vision Pro, and even iMessageNATIVE — That opens up HealthKit, ARKit and LiDAR, NFC, Dynamic Island, Live Activities, 3D through Metal, and on-device inference with Core MLSEED — Rork raised a $15M seed led by Left Lane Capital, with Peak XV and a16z Speedrun joining the round
Articles/Dev Tools
Dev Tools/2026-06-01Advanced

Managing Startup Time as a Budget: How I Deferred SDK Init Across Six Apps

Instead of optimizing startup ad hoc, I switched to allocating a per-phase time budget and defending it. Here's how I deferred SDK init across six Rork-built apps and added a CI gate that fails the build when the budget is exceeded.

React Native209Startup TimePerformance23AdMob70Architecture17

Premium Article

It started with a review on my most-downloaded wallpaper app, one of six I run in parallel: "it feels sluggish to open lately." Not a crash. It doesn't fall over, the features work. But the time from tapping the icon to seeing the first wallpaper grid was clearly slow even to me. When I measured it, cold-start TTI (time to interactive) had drifted from 1,500ms six months ago to 2,400ms.

Every feature I'd added had quietly grown the init path: the ad SDK, analytics, remote config, font preloading, restoring favorites. Each one passed review on its own because "it's only a few dozen milliseconds." Across eight years of solo development and over 50 million cumulative downloads, this is the mistake I've repeated most. Every individual decision is sound, but if no one sets a ceiling on startup as a shared resource, the total grows without limit. This is the record of how I turned startup time from something I "optimized" into something I "budgeted and defended."

Why I stopped optimizing and started budgeting

There are plenty of techniques for faster startup. Use Hermes, split the bundle, lazy-load images. I tried them all. But applying techniques one at a time has a weakness: it's fast right after you fix it, and slow again a few months later.

The reason is plain. Optimization removes the slowness you have today; it does nothing to prevent the slowness you add tomorrow. Every feature grows the init path, and within half a year you're back where you started. This happened on roughly the same cycle across all six of my apps.

So I changed the framing. Startup time is a finite shared resource, like CPU time or memory. If that's true, then I should treat it like a household budget: decide a total, allocate how much each task may spend, and stop when something goes over. The moment I shifted from "make it faster" to "keep it within the envelope," operations got dramatically more stable.

I think of my grandfathers, who were temple carpenters. I'm told that joinery isn't done by deciding "I'll spend X minutes shaving this beam," but by fixing the overall dimensions and joints first, then cutting each piece to fit. Startup time is the same: drawing the overall envelope first and then allocating to each task holds up far better over time, in my experience.

Split startup into three phases and allocate a budget

The first thing I did was split startup into three meaningful phases. As long as "startup is slow" stays a single blob, you can't decide what to cut.

The three boundaries I use across all six apps:

  1. Native startup phase: from process creation to the React root view being mounted. App-side JS has almost no control here.
  2. First paint phase: from JS starting to execute, to the first meaningful screen (the wallpaper-grid skeleton) being painted.
  3. Interactive phase: from the skeleton appearing, to actually responding to scroll and taps (TTI).

Then I allocate a budget (a ceiling in ms) to each phase. Here's the allocation I currently use across six apps:

  • Native startup phase: ceiling 700ms
  • First paint phase: ceiling 600ms
  • Interactive phase: ceiling 500ms
  • Total budget: 1,800ms (TTI)

I set 1,800ms as an empirical line — on mid-range physical devices (a Pixel 6a and an iPhone SE 3rd gen in my testing) — just before users start to feel they're waiting. Device performance varies widely, so the essence isn't the absolute number; it's putting a budget into your operations at all. What matters is the constraint it creates: anyone who wants to add new init work (my past self included) must find that time somewhere in this table.

Thank you for reading this far.

Continue Reading

What follows includes implementation code, benchmarks, and practical content we hope you'll find useful. This site runs without ads — server and development costs are supported entirely by members like you. If it's been helpful, we'd be truly grateful for your support.

WHAT YOU'LL LEARN
A way to split startup into three phases and allocate a budget to each, plus the actual table I use across six apps (1,800ms total)
Before/After code that defers AdMob and Crashlytics init past the first frame, with a measured TTI drop from 2,400ms to 1,500ms
A CI threshold gate that stops startup regressions, and why I made over-budget builds actually fail rather than just warn
Secure payment via Stripe · Cancel anytime

Unlock This Article

Get full access to the rest of this article. Buy once, read anytime. This site is ad-free — your support goes directly toward keeping it running.

or
Unlock all articles with Membership →
Share

Thank You for Reading

Rork Lab is ad-free, supported entirely by members like you. We publish practical guides daily with implementation code, benchmarks, and production-ready patterns. If you've found it useful, we'd love to have you on board.

  • Copy-paste ready implementation code
  • New advanced guides published daily
  • $5/mo or $10 for lifetime access
View Membership →

Related Articles

Dev Tools2026-06-02
Measuring the Real eCPM Yourself: Piping Impression-Level Ad Revenue Into Your Own Analytics
The AdMob dashboard's average eCPM hides which regions and placements actually earn. Here is how I capture per-impression revenue with paidEventListener, normalize it, and pipe it into my own analytics to compute a real eCPM by network, placement, and country.
Dev Tools2026-07-14
Designing Seams That Survive AI Regeneration in Rork
Every follow-up prompt to Rork can quietly wipe out logic you wrote by hand. Protecting it with prompts is a patch, not a fix. Here is how to separate generated code from code you own, and draw a boundary that regeneration cannot reach, with working Zustand and service-layer examples.
Dev Tools2026-07-10
Adding React Compiler to Expo Let Me Delete 41 Hand-Written memo Calls
I enabled React Compiler on Rork-generated React Native screens and measured the rerender counts with Profiler. Here is how I decided which memo and useCallback calls were safe to delete, how to find the components the compiler bailed out on, and how to catch regressions in CI.
📚RECOMMENDED BOOKS
Build a Large Language Model (From Scratch)
Sebastian Raschka
LLM Dev
Prompt Engineering for LLMs
Berryman & Ziegler
Prompting
AI Engineering
Chip Huyen
AI Eng
* Contains affiliate links
See all →