From 976c38104569182ba41d9351a108e673f63ffb98 Mon Sep 17 00:00:00 2001 From: Matt Mastracci Date: Thu, 8 Jun 2023 09:32:08 -0600 Subject: perf(ext/websocket): Reduce GC pressure & monomorpize op_ws_next_event (#19405) Reduce the GC pressure from the websocket event method by splitting it into an event getter and a buffer getter. Before: 165.9k msg/sec After: 169.9k msg/sec --- cli/tests/unit/websocket_test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cli/tests') diff --git a/cli/tests/unit/websocket_test.ts b/cli/tests/unit/websocket_test.ts index 795d5ebc1..16384da40 100644 --- a/cli/tests/unit/websocket_test.ts +++ b/cli/tests/unit/websocket_test.ts @@ -150,7 +150,7 @@ Deno.test({ Deno.test( { sanitizeOps: false }, - function websocketConstructorWithPrototypePollusion() { + function websocketConstructorWithPrototypePollution() { const originalSymbolIterator = Array.prototype[Symbol.iterator]; try { Array.prototype[Symbol.iterator] = () => { -- cgit v1.2.3