Skip to content

Conversation

@schlosna
Copy link

Before this PR

Comments on #737

After this PR

==COMMIT_MSG==
==COMMIT_MSG==

Possible downsides?

@changelog-app
Copy link

changelog-app bot commented Sep 23, 2025

Generate changelog in changelog/@unreleased

Type (Select exactly one)

  • Feature (Adding new functionality)
  • Improvement (Improving existing functionality)
  • Fix (Fixing an issue with existing functionality)
  • Break (Creating a new major version by breaking public APIs)
  • Deprecation (Removing functionality in a non-breaking way)
  • Migration (Automatically moving data/functionality to a new system)

Description

Davids/optimize

Check the box to generate changelog(s)

  • Generate changelog entry


private static final String WITCHCRAFT_LOG_PATTERN_STRING = "\\{.*?\"type\"\\s*?:\\s*?\"("
+ LOG_TYPES.stream().map(Pattern::quote).collect(Collectors.joining("|")) + ")\".*?}";
+ LOG_TYPES.stream().map(Pattern::quote).collect(Collectors.joining("|")) + ")\".*?}\\s*";
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

handles matching log lines including trailing newline

public void write(String str, int off, int len) {
synchronized (lock) {
for (int startIndex = off; startIndex < off + len; ) {
int newLineIndex = str.indexOf('\n', startIndex);
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is vectorized search over underlying bytes

Comment on lines +164 to +167
lineBuffer.append(str, startIndex, off + len);
return;
} else {
lineBuffer.append(str, startIndex, newLineIndex + 1);
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this allows bulk array copy from String to StringBuilder

Comment on lines +47 to +50
if (delegate instanceof TestReporter testReporter) {
testReporter.generateReport(new FormattingTestResultsProvider(testResultsProvider), file);
} else if (delegate instanceof HtmlTestReport htmlTestReport) {
htmlTestReport.generateReport(new FormattingTestResultsProvider(testResultsProvider), file);
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

drive-by cleanup

@stale
Copy link

stale bot commented Oct 18, 2025

This PR has been automatically marked as stale because it has not been touched in the last 14 days. If you'd like to keep it open, please leave a comment or add the 'long-lived' label, otherwise it'll be closed in 7 days.

@stale stale bot added the stale label Oct 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants