Skip to content

Conversation

@ahtrotta
Copy link
Contributor

@ahtrotta ahtrotta commented Oct 4, 2023

Fixes #1411

PRs #1416 and #1418 will need to be merged and released before this one.

  • Simplify actor/action key computation (~15 % improvement)
  • Avoid calling buildDiagram twice when loading sequence diagram (~46% improvement)
  • Cache parsed SQL in Event class (~24% improvement)

Surprisingly, this improves sequence diagram load time by about 15%
This improves the load time of sequence diagrams by about 46%
@ahtrotta ahtrotta force-pushed the feat/improve-sequence-diagram-load-time branch from 1f0ac37 to 3f5d737 Compare October 4, 2023 20:35
This reduces the number of times we need to parse the SQL, which is
expensive, and improves sequence diagram load times by ~24%
@@ -1,3 +1,4 @@
/* eslint-disable */
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks like it's been removed upstream already, but please make sure it doesn't make it to main :-)

@ahtrotta
Copy link
Contributor Author

These changes are all in different PRs now.

@ahtrotta ahtrotta closed this Oct 13, 2023
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

Successfully merging this pull request may close these issues.

Improve sequence diagram load time

3 participants