New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
docgen running slow #680
Comments
I believe it copies the entire tree (including node_modules) instead of operating in place. This would explain why it takes so long as it is busy copying files. |
is this intended behaviour, or just something that happens accidentally? |
It was intentional however this PR will remove that logic and will significantly improve performance. |
PR has been merged so this can be closed now. |
i still have a pretty slow docgen process what is the best way to trace the issue? |
version "6.3.23"
running
jsii-docgen
on my CDK libary project takes about 1.04 minutes The project itself isn't very big, it has some external dependencies though.I'm wondering if that is expected, and if not, what would be a good way to figure out why it takes so long.
I have created a flame graph, and it seems to spend lot of time in copy.js and glob.js which hints to FS operations. (I can share the underlying data, its just too big to upload here)
The text was updated successfully, but these errors were encountered: