https://pulumi.com logo
#typescript
Title
# typescript
c

curved-pharmacist-41509

07/12/2021, 6:37 AM
Hey team, I am on a typescript compilation speed investigation again and there are some small things which could really make a huge difference to Pulumi projects if people wanted opt in once the underlying issues were fixed. Is anyone from the team interested in working with me to get these sorted? https://github.com/pulumi/pulumi-aws/issues/772 and https://github.com/pulumi/pulumi-aws/pull/1015 are key PRs to this happening. I fixed the issues in the AWS sdk ages ago so deep imports now really speed up compilation there. But because Pulumi imports the aws-sdk I can’t get any of those benefits in projects which use Pulumi
As an example of the kinda of improvements you could get. I have a simple project which creates a lambda and a permission. Commenting out
const sdk: typeof import("aws-sdk");
in awsMixins.d.ts reduces this projects compilation time from 7seconds to 3 seconds on my machine. There are some other pretty big wins too. If I apply the fixes from 772 as well (with some updates) it drops it to ~1.7 seconds.
b

brave-planet-10645

07/12/2021, 8:24 AM
Hey Jake, so you know we're aware, I posed this in our internal slack
c

curved-pharmacist-41509

07/12/2021, 8:25 AM
Cheers @brave-planet-10645!