pulumi / pulumi-java

Java support for Pulumi
Apache License 2.0
70 stars 21 forks source link

Extremely slow startup time #1442

Open cowwoc opened 1 month ago

cowwoc commented 1 month ago

Hello!

Issue details

pulumi up on a Java project is much slower than it is for a Typescript project. There is no visible progress for the first ~8 seconds, even if the project is a basic Hello World that does nothing more than create a Kubernetes Provider instance.

Has anyone profiled this? Compilation and Maven integration cannot possibly take more than 1 second to run.

justinvp commented 3 weeks ago

Thanks for the issue, @cowwoc. I haven't had a chance to dig into it, but I wonder if it's related to looking for required Pulumi plugins based on dependencies. Regardless, we should profile and see where we can optimize.