Skip to content

Avoid Pattern recompilation in log output processing#6239

Merged
eddumelendez merged 1 commit intotestcontainers:mainfrom
dreis2211:avoid-pattern-recompilation
Nov 29, 2022
Merged

Avoid Pattern recompilation in log output processing#6239
eddumelendez merged 1 commit intotestcontainers:mainfrom
dreis2211:avoid-pattern-recompilation

Conversation

@dreis2211
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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