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

10x memory increase from v0.13 -> v0.14 #348

Open
eltontian opened this issue Feb 3, 2025 · 1 comment
Open

10x memory increase from v0.13 -> v0.14 #348

eltontian opened this issue Feb 3, 2025 · 1 comment

Comments

@eltontian
Copy link

We measured the Ariadne generated module after upgrading to v0.14, and we realize memory of the module increased from 400MB -> 4GB after upgrading from v0.13 to v0.14.

We would like to use ClientForwardRefs in v0.14, but the memory increase between v0.13 and v0.14 is untenable.

Any ideas what might be causing this and how to avoid this?

Verified on python 3.9 and 3.10 and 3.11 and 3.12

@bombsimon
Copy link
Contributor

That's surprising given the few changes according to the changelog. I don't have any suggestions from the top of my head but curious since I wrote the plugin, is the memory increase the same with and without the ClientForwardRefs plugin?

Also curious given the performance issues the plugin aimed to solve, are you using the same version of pydantic with the generated clients from v0.13 and v0.14?

I don't know how you did your tests but did you try a smaller repro to se if it's still the same? Already 400MB seems like quite a lot, would you see the same change from 1MB -> 10MB? Maybe something you could test on one of the generated clients from the tests?

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

No branches or pull requests

2 participants