Refactor namespace prefix construction to avoid String concatenation in loop
Author: marconi-progCreated Jan 1, 2026Updated Feb 1, 2026
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
Stringconcatenation inside loops - Use
StringBuilderor 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?
Source: Netflix/eureka