ng-state
  • Introduction
  • Main differences
  • Getting Started
    • Instalation
    • Examples
  • Core concepts
    • Main idea
      • More complex flow visualization
    • Configuration
      • Immer Setup
      • ImmutableJs Setup
    • Store
      • Operators
      • Optimistic updates plugin
      • Optimistic updates plugin
      • Form manager plugin
        • onChange hook
        • shouldUpdateState hook
        • Custom form elements
      • Persist state plugin
        • Configuring custom storage
    • Actions
      • Immer
      • ImmutaleJs
      • Injectable Actions
    • Components with Actions
      • Signal Actions
      • State Actions
    • @InjectStore decorator
    • @WithStore decorator
    • @ComponentState decorator
    • Dispatcher
  • Different scenarios
    • Passing list item index via router
    • ngOnChanges hook
    • FormManager pitfalls
  • Unit testing
    • Setup
    • Test store
    • Test actions
    • Test component with actions
    • Test with Angular TestBed
  • Debugging
    • Setup
    • Redux DevTools
    • Automated changes output
    • Manual state changes check
    • Additional debugging information
  • Production
    • Production mode
    • Server Side Rendering (SSR)
  • Other information
    • Best practices
    • CLI
      • Custom Configurations
    • Performance
    • Blog Posts
    • Contributing
Powered by GitBook
On this page

Was this helpful?

  1. Other information

Performance

PreviousCustom ConfigurationsNextBlog Posts

Last updated 6 years ago

Was this helpful?

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 immer ng-state is same fast or faster as ngrx

  • with immutablejs ng-state is a bit slower but immutablejs provides other benefits and acts a bit faster then immer when performing few operations.

Pure libraries performance comparison

  • With immer is a bit faster than immutablejs when performing 10k+ operations.

  • immutablejs a bit faster then immer when 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.

You can read more about .

immer performance here
StackBlitzStackBlitz
Logo