mirror of
https://github.com/denoland/deno.git
synced 2025-08-04 02:48:24 +00:00
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
This commit is contained in:
parent
f35161d3c5
commit
976c381045
4 changed files with 127 additions and 78 deletions
|
@ -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] = () => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue