Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

234
Vistas
How can Redux's reducers traversal be efficient?

I've just started using Redux and as as any developer I'm concerned about performance. Redux documentation states that whenever action is triggered all reducers are traversed through to find appropriate action function via switch statement.


Now, assume we have huge application with many actions. Whenever one of them is triggered, all reducers will be traversed through. Apparently almost all reducers are not needed for that action, but Redux will traverse them even though they have nothing in common with the action being triggered. How can this be efficient???

over 4 years ago · Santiago Trujillo
1 Respuestas
Responde la pregunta

0

Per the comments already given: a few function calls and switch statements are unlikely to be a meaningful performance issue, especially given all the other work going on inside of an application.

The Redux FAQ addresses this topic specifically (Redux FAQ: Performance). It also discusses Redux's overall performance and scalability (Redux FAQ: Performance) .

Beyond that, I just wrote a blog post that discusses several important aspects of performance optimization when using React and Redux together: Practical Redux Part 6: Connected Lists, Forms, and Performance.

over 4 years ago · Santiago Trujillo Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda