Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Avoid Pattern recompilation in log output processing #6239

Merged

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 as a code owner 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.

@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.

None yet

3 participants