HomePhabricator
Diffusion Comm 96cdc48f84a3

[keyserver] Test combinations of approaches to reducing Ashoat's ThreadStore

Description

[keyserver] Test combinations of approaches to reducing Ashoat's ThreadStore

Summary:
This diff stack introduces a script that tests various different approaches to reducing the size of the ThreadStore. We may or may not land it... the goal is just to get some numbers.

Depends on D9340

Test Plan:
Run the script:

before reductions, Ashoat's ThreadStore is 74509866 bytes large
after [A] filtering out old sidebars, Ashoat's ThreadStore is 28795130 bytes large
after [B] improving encoding, Ashoat's ThreadStore is 11379070 bytes large
after [C] introducing isAdminRole, Ashoat's ThreadStore is 14839491 bytes large
after [D] introducing ThreadRolePermissionsStore, Ashoat's ThreadStore is 5640441 bytes large
after [A] and [B], Ashoat's ThreadStore is 5711706 bytes large
after [A] and [C], Ashoat's ThreadStore is 10047103 bytes large
after [A] and [D], Ashoat's ThreadStore is 3064171 bytes large
after [B] and [C], Ashoat's ThreadStore is 6993311 bytes large
after [B] and [D], Ashoat's ThreadStore is 5632940 bytes large
after [C] and [D], Ashoat's ThreadStore is 5640402 bytes large
after [A], [B], and [C], Ashoat's ThreadStore is 4121983 bytes large
after [A], [B], and [D], Ashoat's ThreadStore is 3058364 bytes large
after [A], [C], and [D], Ashoat's ThreadStore is 3064132 bytes large
after [B], [C], and [D], Ashoat's ThreadStore is 5632901 bytes large
after [A], [B], [C], and [D], Ashoat's ThreadStore is 3058325 bytes large

Reviewers: atul, tomek

Reviewed By: atul

Differential Revision: https://phab.comm.dev/D9341