dillon1000/react

Commit

[Fiber] Profiler - Use two separate functions instead of branch by flag (#30957)

Nit: I don't trust flags in hot code. While it can take somewhat longer
to compile two functions and JIT them. After that they don't need to
check branches. Also makes it clearer the purpose.
Browse files
Changed paths2 files
First-parent comparison
M packages/react-reconciler/src/ReactFiberWorkLoop.js ModifiedM packages/react-reconciler/src/ReactProfilerTimer.js Modified
Patch

Files changed

Rendering syntax-highlighted changes…