Page MenuHomePhabricator

[keyserver] Group entry and message infos by threadID instead of iterating over them for each JOIN_THREAD update
ClosedPublic

Authored by tomek on Aug 10 2023, 5:03 AM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Sep 26, 10:34 PM
Unknown Object (File)
Fri, Sep 20, 8:43 PM
Unknown Object (File)
Sun, Sep 15, 10:43 PM
Unknown Object (File)
Thu, Sep 5, 7:45 AM
Unknown Object (File)
Fri, Aug 30, 8:33 AM
Unknown Object (File)
Fri, Aug 30, 4:38 AM
Unknown Object (File)
Thu, Aug 29, 8:59 PM
Unknown Object (File)
Aug 28 2024, 7:08 PM
Subscribers

Details

Summary

For each JOIN_THREAD update we were iterating over all the entry / message infos. Grouping them by threadID will improve the performance when we deliver more than one action of this type.

https://linear.app/comm/issue/ENG-4593/improve-updateinfosfromrawupdateinfos-performance-by-using-a-map

Depends on D8768

Test Plan

Reintroduce removed code and add console logs where we compare previous with new results. Then join a thread and check if the result is the same.

Diff Detail

Repository
rCOMM Comm
Branch
state-sync
Lint
No Lint Coverage
Unit
No Test Coverage