Skip to content

jsii-pacmak very slow running python in fresh pipenv #1856

@jsteinich

Description

@jsteinich

🐛 Bug Report

Affected Languages

  • TypeScript or Javascript
  • Python
  • Java
  • .NET (C#, F#, ...)

General Information

  • JSII Version: 1.7.0
  • Platform: Linux docker-desktop 4.19.104-microsoft-standard

What is the problem?

jsii-pacmak is very slow when python is compiling 700+ files (hashicorp/terraform-cdk#276) in a fresh pipenv. On the order of 10 minutes.

I managed to track the main slowness of trying to integrate jsii-srcmak into cdktf to running python setup. I'm not certain how much of the time is sdist vs wheel though.
Subsequent runs in the same environment are much faster. Still slower than ideal, but #1854 and #1855 are more relevant in that case.

@skorfmann also observed "one python process takes up the majority of the time and consumes up to 2.8 GB of memory at 100% cpu" while building the cdk tf aws provider (https://github.com/skorfmann/cdktf-provider-aws)

Verbose Log

Metadata

Metadata

Assignees

Labels

feature-requestA feature should be added or improved.language/pythonRelated to Python bindings

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions