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

Improve performance of creating documentation models #1493

Closed
SUPERCILEX opened this issue Sep 19, 2020 · 1 comment · Fixed by #1506
Closed

Improve performance of creating documentation models #1493

SUPERCILEX opened this issue Sep 19, 2020 · 1 comment · Fixed by #1506
Assignees
Labels
enhancement An issue for a feature or an overall improvement
Milestone

Comments

@SUPERCILEX
Copy link
Contributor

We're investigating performance and found the bulk of the work is spent creating documentation models:

                           Initializing plugins:   111
                  Creating documentation models: 93410
Transforming documentation model before merging:   351
                   Merging documentation models:    25
 Transforming documentation model after merging:  1688
                                 Creating pages:     3
                             Transforming pages:    48
                                      Rendering:  5552

Unfortunately, this isn't because there's a lot of work to do, but rather because it isn't parallelized. Monitoring the cores shows that only one is used at a time.

I believe the DefaultPsiToDocumentableTranslator and DefaultDescriptorToDocumentableTranslator can be parallelized. For example, parsing each class should be able to be done independently.

@SUPERCILEX SUPERCILEX added the enhancement An issue for a feature or an overall improvement label Sep 19, 2020
@Kordyjan Kordyjan added this to the Backlog 1.4.20 milestone Sep 21, 2020
@kamildoleglo
Copy link
Contributor

Duplicate of #1212

@kamildoleglo kamildoleglo marked this as a duplicate of #1212 Sep 21, 2020
@kamildoleglo kamildoleglo modified the milestones: Backlog 1.4.20, 1.4.20-2 Sep 21, 2020
@BarkingBad BarkingBad linked a pull request Sep 28, 2020 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement An issue for a feature or an overall improvement
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants