Skip to content

Conversation

@andre161292
Copy link

@andre161292 andre161292 commented Oct 22, 2025

This change improves performance for those using the logging operations of Reactor.

The old implementation used String#replaceFirst as it's method to replace the package name with an empty String. As replaceFirst accepts a regular expression, the evaluation was more expensive.
The new logic utilizes a simple substring search and doesn't create an unnecessary new String, but directly appends to the StringBuilder.

Additionally each dot (.) in the package's name, including the appended dot at the end, was treated as a wildcard, which is unexpected behaviour (i assume).

@andre161292 andre161292 requested a review from a team as a code owner October 22, 2025 14:47
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.

1 participant