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
perf: avoid cloning violations map in LHN RBR hot path
Replace filterOutModifiedAmountViolationsForTransactions (which shallow-cloned
the entire transactionViolations map per processing report) with a dedicated
hasNoticeTypeViolationsForRBRInLHN helper that filters excluded violation
names inline per transaction. This removes repeated O(totalViolations) map
copies from the LHN render path and eliminates the associated GC pressure
on large workspaces, while preserving identical behavior: MODIFIED_AMOUNT
notice violations are still excluded from the LHN RBR check for
processing/submitted reports, and expense-details rendering is unchanged.
Addresses Codex review on Expensify#88230.
0 commit comments