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

lsp: switched to lazy tracing of diagram elements. #95

Merged
merged 1 commit into from
Jul 30, 2021

Conversation

NiklasRentzCAU
Copy link
Member

If the element trace on SModelElements is required for tracing from text
to the diagram or vice versa the traces are now generated lazily only
when they are needed. This speeds up the initial diagram generation
time, especially for very large graphs, where the
PositionConverter#toPosition has an O(n^2) runtime in the model size
because it runs through every character of the model for every model
element.
Tracing from diagram to text is now fast, text to diagram still goes
through the all traces and suffers from above mentioned bad runtime for
very large graphs.

Closes #57.
Closes #90.

If the element trace on SModelElements is required for tracing from text
to the diagram or vice versa the traces are now generated lazily only
when they are needed. This speeds up the initial diagram generation
time, especially for very large graphs, where the
PositionConverter#toPosition has an O(n^2) runtime in the model size
because it runs through every character of the model for every model
element.
Tracing from diagram to text is now fast, text to diagram still goes
through the all traces and suffers from above mentioned bad runtime for
very large graphs.

Closes #57.
Closes #90.
@NiklasRentzCAU NiklasRentzCAU added the LSP Affect the klighd language server. label Jul 29, 2021
@NiklasRentzCAU NiklasRentzCAU self-assigned this Jul 29, 2021
@NiklasRentzCAU NiklasRentzCAU merged commit de61aa1 into master Jul 30, 2021
@NiklasRentzCAU NiklasRentzCAU deleted the nre/57-90 branch July 30, 2021 07:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
LSP Affect the klighd language server.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Diagram preferences are not used correctly Re-add tracing support for diagram elements
1 participant