-
Notifications
You must be signed in to change notification settings - Fork 3k
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
[HOLD for payment 2023-09-29] [Performance] Improve SidebarLinks by caching getOrderedReportIDs #25467
Comments
Asking in callstack room who will take these on |
Hello, Im Artem from Callstack and would like to help with this one |
Making this daily as the getOrderedReportIDs is one of the main offenders when it comes to performance for accounts with thousands reports |
@waterim What are the next steps here? |
@mountiny will update you tomorrow, mostly performance here will be improved with caching, because just 1 filter in this function is taking 90% of the whole time and its impossible to optimize this one significantly, but caching is saving a lot of time. |
thanks for an update |
Any updates here? |
@mountiny yes, have a progress, will open a PR today |
@mountiny My update: |
thanks for the update |
Waterim has a PR up, @waterim do you think it will be ready for a review soon? I could make an adhoc build for testing |
Thanks for an update |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.72-11 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue: If no regressions arise, payment will be issued on 2023-09-29. 🎊 After the hold period is over and BZ checklist items are completed, please complete any of the applicable payments for this issue, and check them off once done.
For reference, here are some details about the assignees on this issue:
As a reminder, here are the bonuses/penalties that should be applied for any External issue:
|
Triggered auto assignment to @alexpensify ( |
Bug0 Triage Checklist (Main S/O)
|
No checklist required, this is a performance improvement @parasharrajat is due $500 for internal review |
Here is the payment summary:
Upwork Job: N/A *If applicable, the bonuses will be applied on the final payment Extra Notes regarding payment: See the notes here - #25467 (comment) @parasharrajat please request a payment in Chat and then we can close this out. Thanks! |
Ok, going to close out here. |
Payment requested as per #25467 (comment) |
$500 payment approved for @parasharrajat based on BZ summary. |
Coming from here
[Performance] Improve SidebarLinks:
Problem
Now all the Records to show on LHN are being calculated multiple times and the logic to fill it is complex, this one is a bit trickier to solve but I think it worth it
Solution
Summary
getOrderedReportIDs is a complex function that would be good to re-architecture.
Applying just caching like I did, isn’t the full solution, it gives me a good number to know if worth taking the time to improve it, and even if we aim to get ~40% to ~50% of improvement will be awesome
The text was updated successfully, but these errors were encountered: