Closed
Description
Looking at the CPU profile for a React app in Chrome, I get 65 layers deep into React without ever reaching my own code:
With every layer, I lose a little bit of performance. These deep call stacks also make it difficult to debug which parts of my code need more work.
- Is this expected behavior? While this is a debug build of React, I don't see anything different in the production version. The call stacks are just as deep, only the names of the functions are mangled.
- Is it possible to inline some of these function calls for production React?
I can't say whether this is genuinely a performance issue, but it certainly makes debugging performance issues unpleasant.
I'm on React 0.14.0.