Skip to content

Improve performance of the java-generator #4865

@andreaTP

Description

@andreaTP

Suggestion from @mariofusco as he used async profiler against the java-generator, thanks for the amazing work 🙏 !

He noticed that one possible optimization would be to reduce the amount of work that JavaParser should do when parsing plain Strings e.g. here :

clz.addImplementedType("io.fabric8.kubernetes.api.model.KubernetesResource");

can be more efficient narrowing down the scope of the JavaParser string parsing:

clz.addImplementedType( toClassOrInterfaceType( "io.fabric8.kubernetes.api.model.KubernetesResource" ) );

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions