Skip to content

Performance regression in relay 0.9.x (for server rendering) #1321

Description

@rodrigopr

Hi, we recently upgraded from 0.7.3 to 0.9.2 and noticed that SSR latency was almost twice slower than before.

Investigating using v8-profiler I've found that this happened due to a lot of module require being called inline.

Most of then seem to be from require('fbjs/lib/invariant').

I've changed inlineRequire to false in scripts/getBabelOptions.js and it fixed for us:

writeRelayQueryPayload runs about 6 times faster after the change.


Is there any problem in disabling inlineRequire?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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