Performance·Intermediate·Conceptual·1 min read
When can a Worker make performance worse?
Short interview answer
Startup, messaging, serialization, copying, duplicated dependencies, and coordination add cost. Small tasks or tasks requiring constant main-thread communication may be faster inline. Measure end-to-end latency and responsiveness.
Key takeaway
Explain the underlying mental model clearly, then support it with a concrete example and its trade-offs.