Skip to content

Exceptionally deep React stack traces #5460

Closed
@danvk

Description

@danvk

Looking at the CPU profile for a React app in Chrome, I get 65 layers deep into React without ever reaching my own code:
screen shot 2015-11-12 at 12 31 47 pm

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.

  1. 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.
  2. 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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions