You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Due for payment 2025-07-14] [$250] Use Set for recentlyAccessedKeys in onyx #64773
Awaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.DailyKSv2ExternalAdded to denote the issue can be worked on by a contributor
The proposal is a react-native-onyx change and comes from recent discussion.
Problem
In OnyxCache implements recentlyAccessedKeys with Array primitive, which has linear performance complexity when reading and iterating over it. Frequent reads and writes to recentlyAccessedKeys could yield negative perf implications.
Solution
Similarly to other OnyxCache properties, recentlyAccessedKeys can be refactored to use Set instead of Array to achieve constant I/O times.
Draft PR: Expensify/react-native-onyx#642
Results
Direct performance tests results for addEvictableKeysToRecentlyAccessedList shows significant reduction in processing duration:
🟢 OnyxUtils addEvictableKeysToRecentlyAccessedList one call adding 1k keys > Duration deviation of -23.93 ms (-95.79%) is within the allowed range of 10.00 ms (20.00%).
changed the title [-][$250] Use Set for recentlyAccessedKeys in onyx[/-][+][Due for payment 2025-07-14] [$250] Use Set for recentlyAccessedKeys in onyx[/+]on Jul 7, 2025
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.1.76-5 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue:
@s77rt@twisterdotcom The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed. Please copy/paste the BugZero Checklist from here into a new comment on this GH and complete it. If you have the K2 extension, you can simply click: [this button]
Awaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.DailyKSv2ExternalAdded to denote the issue can be worked on by a contributor
Activity
melvin-bot commentedon Jun 23, 2025
Job added to Upwork: https://www.upwork.com/jobs/~021937282975946938682
[-]Use Set for recentlyAccessedKeys in onyx[/-][+][$250] Use Set for recentlyAccessedKeys in onyx[/+]melvin-bot commentedon Jun 23, 2025
Triggered auto assignment to Contributor-plus team member for initial proposal review - @s77rt (
External)melvin-bot commentedon Jun 23, 2025
Triggered auto assignment to @twisterdotcom (
Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details. Please add this bug to a GH project, as outlined in the SO.melvin-bot commentedon Jun 27, 2025
@s77rt Whoops! This issue is 2 days overdue. Let's get this updated quick!
17 remaining items
[-][$250] Use Set for recentlyAccessedKeys in onyx[/-][+][Due for payment 2025-07-14] [$250] Use Set for recentlyAccessedKeys in onyx[/+]melvin-bot commentedon Jul 7, 2025
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.1.76-5 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 2025-07-14. 🎊
For reference, here are some details about the assignees on this issue:
melvin-bot commentedon Jul 7, 2025
@s77rt @twisterdotcom The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed. Please copy/paste the BugZero Checklist from here into a new comment on this GH and complete it. If you have the K2 extension, you can simply click: [this button]
mountiny commentedon Jul 7, 2025
$250 to @s77rt
s77rt commentedon Jul 13, 2025
Given that this is not a bug, no checklist is due here ^
melvin-bot commentedon Jul 14, 2025
Payment Summary
Upwork Job
BugZero Checklist (@twisterdotcom)
JmillsExpensify commentedon Jul 15, 2025
$250 approved for @s77rt
melvin-bot commentedon Jul 16, 2025
@twisterdotcom Whoops! This issue is 2 days overdue. Let's get this updated quick!
melvin-bot commentedon Jul 18, 2025
@twisterdotcom Huh... This is 4 days overdue. Who can take care of this?