Skip to content
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

Open
webratz opened this issue May 6, 2022 · 5 comments
Open

docgen running slow #680

webratz opened this issue May 6, 2022 · 5 comments

Comments

@webratz
Copy link

webratz commented May 6, 2022

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)

Screenshot 2022-05-06 at 09 17 58

@agdimech
Copy link
Contributor

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.

@webratz
Copy link
Author

webratz commented May 30, 2022

is this intended behaviour, or just something that happens accidentally?

@agdimech
Copy link
Contributor

agdimech commented Jun 17, 2022

It was intentional however this PR will remove that logic and will significantly improve performance.

#644

@agdimech
Copy link
Contributor

PR has been merged so this can be closed now.

@henrysachs
Copy link

i still have a pretty slow docgen process what is the best way to trace the issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants