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

JsonPrimitive will not be recycled. #2781

Open
SilenceShine opened this issue Dec 16, 2024 · 1 comment
Open

JsonPrimitive will not be recycled. #2781

SilenceShine opened this issue Dec 16, 2024 · 1 comment

Comments

@SilenceShine
Copy link

Gson version

2.9.1
maven
Image

@Marcono1234
Copy link
Collaborator

Marcono1234 commented Dec 22, 2024

Could you please provide more information:

  • What does your screenshot show? Is it profiler results which shows memory usage?
  • What is your exact use case? Can you maybe even share a short complete example?
  • In which cases do you want JsonPrimitive to be "recycled"? And how should this "recycling" look like?

Without any more information it is difficult to act on this. For example depending on your use case you could maybe improve the performance of your application by switching to the Gson JsonReader stream based API.

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

No branches or pull requests

2 participants