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

[Codegen] Fix retain cycle between Entity and TypeInfo #210

Merged
merged 1 commit into from
Dec 20, 2023

Conversation

AnthonyMDev
Copy link
Contributor

This fixes a retain cycle that was causing memory leaks. This was manually tested to verify that TypeInfo and Entity objects are now properly released when their operations are complete.

@AnthonyMDev AnthonyMDev requested a review from a team as a code owner December 19, 2023 17:47
Copy link

netlify bot commented Dec 19, 2023

Deploy Preview for eclectic-pie-88a2ba canceled.

Name Link
🔨 Latest commit db06367
🔍 Latest deploy log https://app.netlify.com/sites/eclectic-pie-88a2ba/deploys/6581d731292976000883b446

@AnthonyMDev AnthonyMDev changed the base branch from main to codegen-vaildation-refactor December 19, 2023 17:47
@AnthonyMDev
Copy link
Contributor Author

@pm-dev This one will also help reduce the memory allocation during your project's huge code generation step. The time complexity of fragment field merging means that your codegen will probably still take way too long without disabling that. But the memory issues should be noticeably improved.

@AnthonyMDev AnthonyMDev merged commit 3b486a4 into codegen-vaildation-refactor Dec 20, 2023
16 checks passed
@AnthonyMDev AnthonyMDev deleted the codegen-memory-fix branch December 20, 2023 21: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.

2 participants