tg icon indicating copy to clipboard operation
tg copied to clipboard

Jandex-based entity introspection

Open 01es opened this issue 3 years ago • 0 comments

Description

TG relies on reflection for a lot of domain model analysis at runtime (i.e., the entity introspection such as that implemented in Reflector, EntityUtils, Finder and AnnotationReflector). Reflection remains quite slow in modern Java. One way to improve the performance of such domain model analysis is to use Jandex.

This issue covers the initial research into the use of Jandex for TG and the potential migration of the domain model runtime analysis to use Jandex.

It is important to identify specific benchmarks to evaluate and measure the speedup achieved by using Jandex for entity introspection.

Expected outcome

2x-3x speedup of the entity introspection.

01es avatar Dec 07 '22 05:12 01es