quarkusio/quarkus

Picocli extension - consider generating command metadata during build

Open

#16.355 aperta il 8 apr 2021

Vedi su GitHub
 (22 commenti) (0 reazioni) (0 assegnatari)Java (2464 fork)batch import
area/cligood first issuekind/enhancement

Metriche repository

Star
 (12.967 star)
Metriche merge PR
 (Merge medio 6g 4h) (325 PR mergiate in 30 g)

Descrizione

ATM picocli builds the CommandSpec metadata using reflection every time the application is started. This is OK in most situations but may represent considerable overhead for applications that finish instantly, e.g. some Quarkus CLI commands. It might make sense to analyze the commands during build and either generate some "builder" classes or record the metadata (e.g. using AnnotationProxyBuildItem) and build the metadata in a recorder method.

Guida contributor