-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support the "release" configuration when using dotnet #151
Comments
I would expect debug (or rather, default!) builds to be faster, and as Pulumi is rarely limited by the performance of the language executed, this might be an anti-pattern. Were we to implement this, I'd recommend we benchmark using some of our large SDKs. My prior is that this would make deployments substantially slower with azure-native. |
Hello, in my case providing support for the release configuration would be helpful in two aspects
Bonus : Code compiled in release mode runs faster than debug mode as the compiler makes a lot of optimizations |
Specifically it builds in the default configuration because we just don't pass any
I'm fine with adding an option for this. Most sensible place I think would be the runtime options so you could write in your Pulumi.yaml:
And we would simply pass the value given there to the |
Hi @SineLung - have you measured this? Our .NET SDKs can be quite large, and any steps to optimize the program can actually make Pulumi much slower. We find that the most time consuming steps of the execution time of Pulumi programs are:
If these factors are removed, the language and whether it's compiled or interpreted, optimized or not, rarely make a difference. In fact, compiled languages can take much longer to start (step 2) in some circumstances.
@Frassle should weigh in here, as I don't think I understand this. If you're building binaries manually, I don't think Pulumi is using them, that's not part of the deployment method that Pulumi expects. |
I would go a step further - if we could run .NET programs directly without a build step ( |
It would be perfect to have that option here !
For one of our Pulumi projects, a full rebuild in debug mode took 15 seconds. |
Not directly like that, but we do support the "binary" option to tell the plugin to directly run an executable rather than working through project files. You could use that to ensure you always ran the release binary but it would then be on the user to remember to rebuild when needed. |
Hello!
Issue details
In the CLI with the dotnet sdk, when running
pulumi up
or another command, adotnet build
command is executed.It鈥檚 always being built in debug mode (the default configuration).
It would be preferred to be able to run the
dotnet build
with the release configuration.Affected area/feature
The text was updated successfully, but these errors were encountered: