quarkusio/quarkus

Picocli extension - consider generating command metadata during build

Open

#16.355 geöffnet am 8. Apr. 2021

Auf GitHub ansehen
 (22 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)Java (2.464 Forks)batch import
area/cligood first issuekind/enhancement

Repository-Metriken

Stars
 (12.967 Stars)
PR-Merge-Metriken
 (Durchschn. Merge 6T 4h) (325 gemergte PRs in 30 T)

Beschreibung

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.

Contributor Guide