Performance
ng-state is highly performant library with both immer and immutablejs data strategies.
ng-state performance comparison
How ng-state acts comparing to other state management slutions:
with
immerng-state is same fast or faster asngrxwith
immutablejsng-state is a bit slower but immutablejs provides other benefits and acts a bit faster then immer when performing few operations.
You can read more about immer performance here.
Pure libraries performance comparison
With
immeris a bit faster thanimmutablejswhen performing 10k+ operations.immutablejsa bit faster thenimmerwhen performing few operations but a bit slower when performing 10k+ operations.
Pure library coparison can be found here. Change iterations constant to see different variations.
Last updated
Was this helpful?