Skip to content

Document React Native Performance Overhead #3940

Open
@tj-mc

Description

@tj-mc

Steps to reproduce

  • Create a list of items, one with items rendered normally, one with items rendered with styled-components
  • Profile the list with the flamegraph

Expected Behavior

Both render in the same time

Actual Behavior

styled-components is about 25% slower

Suggestion

Performance overhead is documented or explained somewhere that is obvious.

There is an impression that the styling happens for free or 'magically', when it really adds a notable runtime overhead.
This is most obvious in long lists of items.

Many people use this package in React Native and I've worked on a few apps that have faced performance issues related to it.
React Native is particularly sensitive when it comes to performance, so I think this should be explained somewhere upfront in a 'caveats' section.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions