-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
[$250] [HOLD for payment 2024-06-28] [HOLD for payment 2024-06-24] [LOW] [Performance] Improve the performance of getOrderedReportIDs #43488
Comments
Triggered auto assignment to @joekaufmanexpensify ( |
@kosmydel will take this one |
@kosmydel please comment and I'll assign you |
Commenting :) |
PR in review |
About to go OOO until 2024-06-25, but don't think payment will be due before then, so not adding an additional assignee. Please re-add bug label if someone comes up in the interim while I am away. |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.84-3 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 2024-06-24. 🎊 For reference, here are some details about the assignees on this issue:
|
BugZero Checklist: The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.85-7 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 2024-06-28. 🎊 For reference, here are some details about the assignees on this issue:
|
BugZero Checklist: The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:
|
@shubham1206agra mind commenting here so I can assign you? I see you were C+ for this one |
👋🏽 |
Job added to Upwork: https://www.upwork.com/jobs/~01facc6fcf70a639b9 |
Current assignee @shubham1206agra is eligible for the External assigner, not assigning anyone new. |
@shubham1206agra is checklist needed here? |
Only payment here is $250 to @shubham1206agra via upwork for C+ |
@shubham1206agra offer sent for $250! |
No |
@joekaufmanexpensify Accepted |
Great! All set to pay then. |
@shubham1206agra $250 sent and contract ended! |
Upwork job closed. |
All set, thanks everyone! |
Coming from here
Problem
Constantly copying all reports in the
getOrderedReportIDs
function is resource-intensive. We're doing this just to add a single property, and we are using only 2 copied properties. This process significantly increases the function's runtime.Solution
Avoid copying the entire report object. Instead, create a minimized report version that only includes the necessary properties. This approach is safe as these data are used solely for sorting.
On my heavy account, I've tested it, and here are the results:
A POC with performance measurements is available here. Please let me know if you have any questions.
Issue Owner
Current Issue Owner: @Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @joekaufmanexpensifyThe text was updated successfully, but these errors were encountered: