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

perf: speed up sidebar sorter #3317

Merged
merged 2 commits into from
Mar 7, 2024
Merged

Conversation

patosullivan
Copy link
Member

I was getting annoyed with how slow the sidebar can be, so I did a performance profile and root caused that this particular function was pretty heavy.

Saw a marked improvement in performance for this function by just pre-computing the values for comparison before running the comparison and eliminating the use of .reverse().

Note that this isn't a cure-all, I just decided to take a weed wacker to the tallest weed on a cursory look.

tested locally by running the dev server against my livenet planet.

No idea if there's a linear ticket for sidebar perf.

PR Checklist

  • Includes changes to desk files
  • Describes how you tested the PR locally (test ship vs livenet)
  • If a new feature, includes automated tests
  • Comments added anywhere logic may be confusing without context

I was getting annoyed with how slow the sidebar can be, so I did a performance profile and root caused that this particular function was pretty heavy.

Saw a marked improvement in performance for this function by just pre-computing the values for comparison before running the comparison and eliminating the use of .reverse().

Change should be most noticeable when navigating back to the main groups list from a group, or just loading the app initially. There's still some slowness with the group sidebar itself, which we should root cause at some point.
Copy link
Member

@arthyn arthyn left a comment

Choose a reason for hiding this comment

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

lgtm

@patosullivan patosullivan merged commit 12bab6e into develop Mar 7, 2024
1 check passed
@patosullivan patosullivan deleted the po/perf-speed-up-sidebar-sort branch March 7, 2024 17:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants