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

Reduce field injection footprint #2004

Merged
merged 2 commits into from
Oct 19, 2020

Conversation

richardstartin
Copy link
Member

@richardstartin richardstartin commented Oct 19, 2020

This reduces the overhead of injected fields by manually excludes as many instrumentable RunnableFutures as possible to prevent RunnableInstrumentation from injecting these types. These changes reduces field injection footprint from 2 * depth * width to depth * width in most cases.

@richardstartin richardstartin requested a review from a team as a code owner October 19, 2020 14:47
@richardstartin richardstartin force-pushed the rgs/reduce-field-injection-footprint branch from 367eabf to e37eb02 Compare October 19, 2020 14:48
@richardstartin richardstartin marked this pull request as draft October 19, 2020 14:59
@richardstartin richardstartin force-pushed the rgs/reduce-field-injection-footprint branch from e37eb02 to 221515c Compare October 19, 2020 15:11
@@ -78,11 +79,11 @@ public static boolean exclude(ExcludeType type, String className) {
*
* @param excludeTypes the types to exclude
*/
public static void add(Map<ExcludeType, Set<String>> excludeTypes) {
public static void add(Map<ExcludeType, ? extends Collection<String>> excludeTypes) {
Copy link
Contributor

Choose a reason for hiding this comment

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

👍

@richardstartin richardstartin force-pushed the rgs/reduce-field-injection-footprint branch from 221515c to 7da0d0f Compare October 19, 2020 16:19
@richardstartin richardstartin marked this pull request as ready for review October 19, 2020 16:19
@richardstartin richardstartin force-pushed the rgs/reduce-field-injection-footprint branch from 7da0d0f to 12bf9f9 Compare October 19, 2020 17:14
@richardstartin richardstartin merged commit 7df02d6 into master Oct 19, 2020
@richardstartin richardstartin deleted the rgs/reduce-field-injection-footprint branch October 19, 2020 17:58
@github-actions github-actions bot added this to the 0.66.0 milestone Oct 19, 2020
@PerfectSlayer PerfectSlayer added tag: performance Performance related changes and removed efficiency labels Jun 23, 2023
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.

None yet

5 participants