Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

240
Visualizações
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 Respostas
Responde à pergunta

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 Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda