Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

2984 optimizing requestid #2985

Closed
wants to merge 3 commits into from

Conversation

morrys
Copy link
Contributor

@morrys morrys commented Jan 6, 2020

#2984

Modified the compilation of the artifacts in order to generate a unique identifier (md5 text) for the 'Request' nodes.

modified writeRelayGeneratedFile:

eliminate the switch, the node is always of type Request because inside 'if (generatedNode.kind === RelayConcreteNode.REQUEST) {'

https://github.com/facebook/relay/blob/master/packages/relay-compiler/codegen/writeRelayGeneratedFile.js#L98

Modified the compilation of the artifacts in order to generate a unique identifier (md5 text) for Request type nodes.

writeRelayGeneratedFile:

eliminate the switch, the node is always of type Request because inside 'if (generatedNode.kind === RelayConcreteNode.REQUEST) {'
https://github.com/facebook/relay/blob/master/packages/relay-compiler/codegen/writeRelayGeneratedFile.js#L98
Copy link
Contributor

@facebook-github-bot facebook-github-bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jstejada has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

@sibelius
Copy link
Contributor

this will make persisting the store to cause less memory

more info here morrys/react-relay-offline#34 (comment)

@morrys
Copy link
Contributor Author

morrys commented Mar 25, 2020

@jstejada @kassens any news about this PR?
before resolving conflicts I would like to know if you are interested in its integration.
Thanks

@morrys
Copy link
Contributor Author

morrys commented Apr 2, 2020

Friendly ping @kassens @jstejada

@jstejada
Copy link
Contributor

@morrys this PR is already imported and we're looking at how to roll it out internally

@facebook-github-bot
Copy link
Contributor

@kassens merged this pull request in a3acc08.

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

Successfully merging this pull request may close these issues.

None yet

4 participants