KEMBAR78
Avoid Pattern recompilation in log output processing by dreis2211 · Pull Request #6239 · testcontainers/testcontainers-java · GitHub
Skip to content

Conversation

@dreis2211
Copy link
Contributor

Hi,

I've been doing some profiling and noticed an admittedly small - but avoidable - amount of allocations coming from testcontainers when processing log outputs.

image

This PR avoids recompiling patterns and the corresponding allocations.

Cheers,
Christoph

@dreis2211 dreis2211 requested a review from a team November 27, 2022 16:12
Copy link
Member

@kiview kiview left a comment

Choose a reason for hiding this comment

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

Thanks for the focused PR @dreis2211.

@kiview kiview requested a review from eddumelendez November 28, 2022 11:06
@eddumelendez eddumelendez added this to the next milestone Nov 29, 2022
@eddumelendez eddumelendez merged commit ea32b8b into testcontainers:main Nov 29, 2022
@eddumelendez
Copy link
Member

Thanks for your contribution @dreis2211 ! PR is already merged in main branch and it will part of the next release.

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.

3 participants