The faster you can synthesize your CDKTN code, the faster you can deploy it. This page focuses on how to optimize your CDK Terrain performance.Documentation Index
Fetch the complete documentation index at: https://cdktn.io/docs/llms.txt
Use this file to discover all available pages before exploring further.
TypeScript
In TypeScript, the main bottleneck for synthesization performance is the time it takests-node or tsc to compile your code.
The easiest way to improve this is using explicit resource imports like import { MyResource } from '@cdktn/provider-my-provider/lib/my-resource' instead of star imports like import * as myProvider from '@cdktn/provider-my-provider'.
Another option is to use a bundler without typechecking like tsx or swc to compile your code. These are typically a lot faster than tsc or ts-node, but you will get no typechecking.