🐛 Bug Report
Affected Languages
General Information
- JSII Version: 1.7.0
- Platform: Linux docker-desktop 4.19.104-microsoft-standard
What is the problem?
jsii-pacmak is quite slow when dealing with 700+ files (hashicorp/terraform-cdk#276).
After running multiple profiling sessions,
|
return Object.values(types); |
sticks out as a hot spot (~40/60 seconds profiling window). It seems like it would be easy to cache the result of
Object.values
The other spot that stood out was
|
jsii.validateAssembly(this.spec); |
which took over 8 seconds. I see that validation was turned off in other spots (
#1751), so maybe it could be turned off here as well.
Verbose Log
vscode-cpuprofile
🐛 Bug Report
Affected Languages
TypeScriptorJavascriptPythonJavaC#,F#, ...)General Information
What is the problem?
jsii-pacmak is quite slow when dealing with 700+ files (hashicorp/terraform-cdk#276).
After running multiple profiling sessions,
jsii/packages/jsii-reflect/lib/assembly.ts
Line 156 in 1165f48
Object.valuesThe other spot that stood out was
jsii/packages/jsii-reflect/lib/assembly.ts
Line 174 in 1165f48
which took over 8 seconds. I see that validation was turned off in other spots (#1751), so maybe it could be turned off here as well.
Verbose Log
vscode-cpuprofile