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

[HOLD for payment 2023-10-17] Speedup getOrderedReportIDs by comparing strings instead of Dates objects #28001

Closed
mountiny opened this issue Sep 22, 2023 · 6 comments
Assignees
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2

Comments

@mountiny
Copy link
Contributor

Problem

For some reason creating Date object is super slow on Hermes. So @janicduplessis came up with the idea to compare strings instead. It will generate a different output but the error is only under 1s. The reason for that is that milliseconds representation can has different length.
Screenshot 2023-09-22 at 11 41 52

Using this solution:

the method now runs under 1s instead of 14s (when starting heavy accounts

@mountiny mountiny added Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Sep 22, 2023
@mountiny mountiny self-assigned this Sep 22, 2023
@melvin-bot
Copy link

melvin-bot bot commented Sep 22, 2023

Triggered auto assignment to @miljakljajic (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.

@melvin-bot
Copy link

melvin-bot bot commented Sep 22, 2023

Bug0 Triage Checklist (Main S/O)

  • This "bug" occurs on a supported platform (ensure Platforms in OP are ✅)
  • This bug is not a duplicate report (check E/App issues and #expensify-bugs)
    • If it is, comment with a link to the original report, close the issue and add any novel details to the original issue instead
  • This bug is reproducible using the reproduction steps in the OP. S/O
    • If the reproduction steps are clear and you're unable to reproduce the bug, check with the reporter and QA first, then close the issue.
    • If the reproduction steps aren't clear and you determine the correct steps, please update the OP.
  • This issue is filled out as thoroughly and clearly as possible
    • Pay special attention to the title, results, platforms where the bug occurs, and if the bug happens on staging/production.
  • I have reviewed and subscribed to the linked Slack conversation to ensure Slack/Github stay in sync

@mountiny mountiny added the Reviewing Has a PR in review label Sep 22, 2023
@melvin-bot melvin-bot bot added Weekly KSv2 and removed Daily KSv2 labels Sep 22, 2023
@mountiny mountiny changed the title Speedup getOrderedReportIDs by compering strings instead of Dates objects Speedup getOrderedReportIDs by comparing strings instead of Dates objects Oct 2, 2023
@melvin-bot melvin-bot bot added Monthly KSv2 and removed Weekly KSv2 labels Oct 16, 2023
@melvin-bot
Copy link

melvin-bot bot commented Oct 16, 2023

This issue has not been updated in over 15 days. @miljakljajic, @allroundexperts, @mountiny eroding to Monthly issue.

P.S. Is everyone reading this sure this is really a near-term priority? Be brave: if you disagree, go ahead and close it out. If someone disagrees, they'll reopen it, and if they don't: one less thing to do!

@mountiny mountiny changed the title Speedup getOrderedReportIDs by comparing strings instead of Dates objects [HOLD for payment 2023-10-17] Speedup getOrderedReportIDs by comparing strings instead of Dates objects Oct 16, 2023
@mountiny mountiny added Daily KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Monthly KSv2 labels Oct 16, 2023
@mountiny
Copy link
Contributor Author

This is ready for payment and its $500 to @allroundexperts for internal review and testing

@mountiny mountiny removed the Reviewing Has a PR in review label Oct 16, 2023
@miljakljajic
Copy link
Contributor

Payment summary: $500 to @allroundexperts for internal review and testing

@allroundexperts please request payment in newDot!

@JmillsExpensify
Copy link

$500 payment approved for @allroundexperts based on summary above.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2
Projects
Development

No branches or pull requests

4 participants