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

Optimize temporary variable creation by excluding void method invocations in ResourceLeakTransfer #6568

Closed
iamsanjaymalakar opened this issue May 1, 2024 · 0 comments · Fixed by #6569
Assignees

Comments

@iamsanjaymalakar
Copy link
Member

Description

The ResourceLeakTransfer class currently creates temporary variables for nodes unless they are of primitive or boxed types. This setup excludes certain cases but can be further optimized by also excluding method invocations that return void. Implementing this change could potentially improve performance by reducing unnecessary processing and memory usage associated with managing temporary variables for void returns.

By reducing the creation of unnecessary temporary variables, this change is expected to slightly improve the system's performance. Although the impact may not be substantial, it will contribute to the overall efficiency and cleanliness of the code, potentially reducing memory usage and processing time during analysis.

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

Successfully merging a pull request may close this issue.

1 participant