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

Memory usage optimization #13

Open
AlexisMardas opened this issue May 31, 2024 · 0 comments · May be fixed by #14
Open

Memory usage optimization #13

AlexisMardas opened this issue May 31, 2024 · 0 comments · May be fixed by #14

Comments

@AlexisMardas
Copy link

We realized that in some classes when an empty immutable list needs to be passed as a parameter to a method, a new List instance is created. Instead, we propose the more appropriate alternative of Collections.emptyList() that uses the same immutable instance, An example of this issue can be found in line 38 of ParameterizedTypeName. For further details check the implementation of emptyList.

@AlexisMardas AlexisMardas linked a pull request Jun 2, 2024 that will close this issue
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 a pull request may close this issue.

1 participant