dillon1000/react
Commit
Browse files Prevent inlining into recursive commit functions (#20105)
Adds a bunch of no-inline directives to commit phase functions to prevent them from being inlined into one of our recursive algorithms. The motivation is to minimize the number of variables in the recursive functions, since each one contributes to the size of the stack frame. Theoretically, this could help the performance of both the recursive and non-recursive (iterative) implementations of the commit phase, since even the iterative implementation sometimes uses the JS stack.
Changed paths1 file
First-parent comparisonpackages/react-reconciler/src/ReactFiberCommitWork.new.js ModifiedPatch
Files changed
Rendering syntax-highlighted changes…