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

Update CLI to include switching lets to vars to prevent memory overuse #1246

Merged
merged 4 commits into from
Jun 7, 2020

Conversation

designatednerd
Copy link
Contributor

Addresses #230, where static let allocation of [GraphQLSelection] arrays meant that they were all allocated at load time rather than at the point of use. This PR transitions the generated code to using computed static vars so that the memory is only taken up when it's actually being used.

Big props to @gsabran for picking up on what the underlying issue is here.

@designatednerd designatednerd added this to the Next Release milestone Jun 5, 2020
@designatednerd designatednerd merged commit 8dc95d7 into master Jun 7, 2020
@designatednerd designatednerd deleted the update/cli branch June 7, 2020 22:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant