Skip to content

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

Merged
designatednerd merged 4 commits intomasterfrom
update/cli
Jun 7, 2020
Merged

Update CLI to include switching lets to vars to prevent memory overuse#1246
designatednerd merged 4 commits intomasterfrom
update/cli

Conversation

@designatednerd
Copy link
Copy Markdown
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