Replace typescript compiler with native tsgo compiler

This commit is contained in:
Jamie
2026-03-18 11:26:18 -07:00
committed by GitHub
parent 5e6af4708b
commit c90ca2b4e0
207 changed files with 1819 additions and 1270 deletions

View File

@@ -19,7 +19,7 @@ Bootstrap.benchmark(async (bootstrap: Bootstrap): Promise<void> => {
const [first, second] = contacts as [PrimaryDevice, PrimaryDevice];
const messages = new Array<Buffer>();
const messages = new Array<Buffer<ArrayBuffer>>();
debug('encrypting');
// Send messages from just two contacts
for (const contact of [second, first]) {

View File

@@ -49,7 +49,7 @@ Bootstrap.benchmark(async (bootstrap: Bootstrap): Promise<void> => {
const { server, desktop } = bootstrap;
const [first] = members as [PrimaryDevice];
const messages = new Array<Buffer>();
const messages = new Array<Buffer<ArrayBuffer>>();
debug('encrypting');
// Fill left pane
for (const contact of members.slice(0, CONVERSATION_SIZE).reverse()) {
@@ -190,7 +190,7 @@ Bootstrap.benchmark(async (bootstrap: Bootstrap): Promise<void> => {
runId,
delay,
}: {
receipts: Array<Buffer>;
receipts: Array<Buffer<ArrayBuffer>>;
batchSize: number;
nextBatchSize: number;
runId: number;
@@ -216,7 +216,7 @@ Bootstrap.benchmark(async (bootstrap: Bootstrap): Promise<void> => {
}
}
let receiptsFromPreviousMessage: Array<Buffer> = [];
let receiptsFromPreviousMessage: Array<Buffer<ArrayBuffer>> = [];
for (let runId = 0; runId < RUN_COUNT + DISCARD_COUNT; runId += 1) {
debug(`sending previous ${receiptsFromPreviousMessage.length} receipts`);

View File

@@ -22,7 +22,7 @@ Bootstrap.benchmark(async (bootstrap: Bootstrap): Promise<void> => {
const [first] = contacts as [PrimaryDevice];
const messages = new Array<Buffer>();
const messages = new Array<Buffer<ArrayBuffer>>();
debug('encrypting');
// Note: make it so that we receive the latest message from the first
// contact.

View File

@@ -21,7 +21,7 @@ Bootstrap.regressionBenchmark(
const { server, contacts, phone, desktop } = bootstrap;
// Generate messages
const messagePromises = new Array<Promise<Buffer>>();
const messagePromises = new Array<Promise<Buffer<ArrayBuffer>>>();
debug('started generating messages');
for (let i = 0; i < messageCount; i += 1) {