Skip to content

Refactor namespace prefix construction to avoid String concatenation in loop #1606

@marconi-prog

Description

@marconi-prog

Description

While reviewing InternalPrefixedConfig, I noticed that the namespace prefix is built using String concatenation inside a loop.

This works correctly, but repeated string concatenation can be inefficient and less readable, especially when the intent is to build a prefix string.

Proposed Improvement

Refactor the constructor to:

  • Avoid String concatenation inside loops
  • Use StringBuilder or a stream-based approach
  • Improve readability while keeping behavior unchanged

Scope

  • Internal refactor only
  • No functional or behavioral changes

Question

Would it be okay if I work on this refactoring and open a Pull Request?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions