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
F2127500: D8776.id30218.diff
Thu, Jun 27, 7:49 AM
Unknown Object (File)
Tue, Jun 25, 6:56 PM
Unknown Object (File)
Mon, Jun 24, 4:58 AM
Unknown Object (File)
Mon, Jun 24, 3:31 AM
Unknown Object (File)
Sun, Jun 23, 6:00 PM
Unknown Object (File)
Fri, Jun 21, 9:57 AM
Unknown Object (File)
Fri, Jun 21, 9:57 AM
Unknown Object (File)
Fri, Jun 21, 9:57 AM
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
Lint
Lint Not Applicable
Unit
Tests Not Applicable