Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

229
Views
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 answers
Answer question

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 Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!