Skip to content

Conversation

@ikalachy
Copy link
Contributor

Refactored scanForAnnotation for:

  • Avoiding unnecessary intermediate objects
  • Using efficient iteration instead of streams where possible
  • Handling I/O safely
  • Reducing memory pressure by avoiding distinct().toList() on potentially large collections

Also:

  • Refactored mutableCopyOf() methods for List, Set, Map, and generic Collection to:
  • Reduce stream overhead.
  • Use proper initial capacities to minimize reallocation.
  • More efficient multiMapToMap.
image

@sonarqubecloud
Copy link

sonarqubecloud bot commented Jul 1, 2025

@ikalachy ikalachy marked this pull request as ready for review July 2, 2025 05:58
@ikalachy ikalachy requested a review from a team as a code owner July 2, 2025 05:58
@ikalachy ikalachy requested review from halber and kristian July 2, 2025 05:59
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