Skip to content

[6.0] #3582 Avoid repeating per-class work while processing annotated types - #3584

Merged
manovotn merged 1 commit into
weld:6.0from
flowlogix:with-annotations-filter-perf-6.0
Nov 3, 2026
Merged

manovotn merged 1 commit into
weld:6.0from
flowlogix:with-annotations-filter-perf-6.0

Conversation

@lprimak

@lprimak lprimak commented Oct 29, 2026 •

Copy link
Copy Markdown
Contributor

6.0 backport of #3583.

Same change and tests as in #3583 (see #3582 for the problem). It applies without changes. mvn test in impl on this branch passes (291 tests, including the two new test classes).

@lprimak
lprimak requested a review from manovotn as a code owner October 29, 2026 01:54
@lprimak
lprimak force-pushed the with-annotations-filter-perf-6.0 branch from 77ca456 to 94a9030 Compare October 29, 2026 02:22
@lprimak lprimak changed the title [Backport, 6.0] Performance improvement. Scan a class only once when resolving @WithA… [6.0] #3582 Avoid repeating per-class work while processing annotated types Oct 29, 2026
- RequiredAnnotationDiscovery searched the whole class hierarchy once for
  each annotation that a @WithAnnotations observer asks for. A class is now
  searched once, and the result is kept until bootstrap is finished.
- EnhancedAnnotatedTypeImpl#getOverriddenMethods went through all methods of
  a type again for every class in its hierarchy. The methods are now grouped
  by their declaring class once.

The results are the same as before. This is an optimization.

Signed-off-by: lprimak <lenny@flowlogix.com>
@lprimak
lprimak force-pushed the with-annotations-filter-perf-6.0 branch from c4f5d43 to 7c7c1d4 Compare November 3, 2026 18:51
@manovotn
manovotn merged commit 055ccd7 into weld:6.0 Nov 3, 2026
16 checks passed
@lprimak
lprimak deleted the with-annotations-filter-perf-6.0 branch November 3, 2026 20:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants