Skip to content

Understanding usage of the JSII_RUNTIME_PACKAGE_CACHE setting #3895

Answered by JJSphar
mcouthon asked this question in Q&A
Discussion options

You must be logged in to vote

It looks like the package cache originally couldn't be enabled due to a string comparison issue with the "enabled" flag. This was fixed in #3912, and released in JSII 1.76.0

Once I upgraded the JSII version in my project, running the JSII_DEBUG=1 JSII_DEBUG_TIMING=1 python -c "from aws_cdk import App" command started to show cache-related output on the first run:
[@jsii/kernel] Package cache enabled, extraction resulted in a cache miss for a total runtime of 70 seconds

A subsequent run produced:
[@jsii/kernel] Package cache enabled, extraction resulted in a cache hit for a total runtime of just 38 seconds.

If you've been having trouble with this feature, try upgrading JSII to >=1.76 and s…

Replies: 6 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@mcouthon
Comment options

Answer selected by mcouthon
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants