You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
The reason will be displayed to describe this comment to others. Learn more.
This is indeed a good improvement for LOC, but I don't think it has better performance than reduceRight in terms of speed and memory allocation. js bin unless the it is trivial since we generally don't create that thousands of reducers in real-apps
The reason will be displayed to describe this comment to others. Learn more.
Right, the point is that most apps are probably only calling this one time during app initialization, rather than thousands of times over the life of the app.
44dfc39
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is indeed a good improvement for LOC, but I don't think it has better performance than reduceRight in terms of speed and memory allocation. js bin unless the it is trivial since we generally don't create that thousands of reducers in real-apps
44dfc39
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we actually perf tested it as part of the initial PR, and this way was always faster (between 1-3x)
44dfc39
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Right, the point is that most apps are probably only calling this one time during app initialization, rather than thousands of times over the life of the app.
44dfc39
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@markerikson I was just responding to this comment