Improve timeline rendering performance

This commit is contained in:
trevor-signal
2024-02-27 11:01:25 -05:00
committed by GitHub
parent c319a089d2
commit 167b2f4f1c
11 changed files with 329 additions and 106 deletions

View File

@@ -183,8 +183,10 @@ Bootstrap.benchmark(async (bootstrap: Bootstrap): Promise<void> => {
debug('waiting for timing from the app');
const { timestamp, delta } = await app.waitForMessageSend();
// Sleep to allow any receipts from previous rounds to be processed
await sleep(1000);
if (GROUP_DELIVERY_RECEIPTS > 1) {
// Sleep to allow any receipts from previous rounds to be processed
await sleep(1000);
}
debug('sending delivery receipts');
receiptsFromPreviousMessage = await Promise.all(