Skip to content

Merge pull request #1240 from DataDog/tyler/executor-matcher-reorder#1240

Merged
tylerbenson merged 1 commit into
masterfrom
tyler/executor-matcher-reorder
Feb 21, 2020
Merged

Merge pull request #1240 from DataDog/tyler/executor-matcher-reorder#1240
tylerbenson merged 1 commit into
masterfrom
tyler/executor-matcher-reorder

Conversation

@tylerbenson
Copy link
Copy Markdown
Contributor

Move the expensive matcher to last.

In theory this should help, but did not seem to make a significant difference in basic startup benchmarks.

Move the expensive matcher to last.

In theory this should help, but did not seem to make a significant difference in basic startup benchmarks.
@tylerbenson tylerbenson requested a review from a team as a code owner February 20, 2020 19:35
@tylerbenson tylerbenson added the tag: performance Performance related changes label Feb 21, 2020
new ElementMatcher<TypeDescription>() {
@Override
public boolean matches(final TypeDescription target) {
boolean whitelisted = WHITELISTED_EXECUTORS.contains(target.getName());
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

We might get a bit more from turning this into a string switch, but I suspect we've probably reached a point of diminishing returns.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Let's consider that in the future.

@tylerbenson tylerbenson changed the title Reorder java-concurrent matchers Merge pull request #1240 from DataDog/tyler/executor-matcher-reorder Feb 21, 2020
@tylerbenson tylerbenson merged commit 5e37ca0 into master Feb 21, 2020
@tylerbenson tylerbenson deleted the tyler/executor-matcher-reorder branch February 21, 2020 01:54
@randomanderson randomanderson added this to the 0.44.0 milestone Feb 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

tag: performance Performance related changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants