Why are signals considered more performant than RxJS?
Signals are faster because they work in a targeted, synchronous way, without unnecessary subscriptions and without passing data through a stream.
Main reasons:
- No subscriptions.
A signal is simply a value in memory. On change, Angular knows who to update, without the
subscribe()andunsubscribe()mechanism. - Synchronous work.
When you call
set(), the update happens immediately. RxJS often processes events asynchronously, through a task queue. - Precise template updates. Angular with signals updates only the elements where the signal is actually used, not the whole component.
- Less overhead. RxJS has a complex mechanism of streams, operators, and subscriptions. Signals have a simple model of storage and reaction.
Summary: Signals are "direct reactivity without intermediaries". They do less unnecessary work, so they run faster.
Short Answer
Interview readyPremium
A concise answer to help you respond confidently on this topic during an interview.