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
[HOLD for payment 2023-10-02] Memoize expensive calls in ReportActionsList renderItem #27972
Some of the operations we do in ReportActionsList renderItem are pretty expensive since this function is executed for every items in the render window every time the render window changes. To improve performance of FlatList scrolling we need to move any expensive computation inside a memoized component. This way when FlatList re-renders to display new items but the data did not change only the new rendered items will need to render.
We were already memoizing ReportActionItem, but renderItem still contains some expensive calls, specifically isConsecutiveActionMadeByPreviousActor which has to do some date comparisons. I moved those to a new component ReportActionsListItemRenderer which will prevent any re-renders coming from from FlatList for items that were already rendered. This reduces the number of calls to isConsecutiveActionMadeByPreviousActor from the number of currently rendered item (~100 depending on the FlatList window size) to just the new items being added (usually 10 since this is the batch size).
@sonialiap@JmillsExpensify Sorry to open this up. I just noticed that the request on the ND I did was requested and approved for $500, so there's there is a shortage in payment here. Could you help confirm it? Thank you!
Activity
mountiny commentedon Sep 25, 2023
merged
melvin-bot commentedon Sep 25, 2023
Triggered auto assignment to @sonialiap (
Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.melvin-bot commentedon Sep 25, 2023
Bug0 Triage Checklist (Main S/O)
Platformsin OP are ✅)7 remaining items
mollfpr commentedon Oct 3, 2023
@mountiny @sonialiap I think there's nothing we can add to the BZ checklist.
mountiny commentedon Oct 3, 2023
I agree, no need here for the checklist
mollfpr commentedon Oct 6, 2023
@sonialiap I think I can request payment in NewDot for this issue.
JmillsExpensify commentedon Oct 6, 2023
@sonialiap Can you please add a payment summary to this issue so I can pay?
melvin-bot commentedon Oct 9, 2023
@sonialiap, @mollfpr, @mountiny Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!
sonialiap commentedon Oct 9, 2023
Sorry for the delay, working 50% while trying to juggle the normal work load.
Payment:
JmillsExpensify commentedon Oct 9, 2023
$750 payment approved for @mollfpr based on BZ summary.
mollfpr commentedon Oct 15, 2023
@sonialiap @JmillsExpensify Sorry to open this up. I just noticed that the request on the ND I did was requested and approved for $500, so there's there is a shortage in payment here. Could you help confirm it? Thank you!
mollfpr commentedon Oct 20, 2023
Friendly bump @JmillsExpensify