From b7d86b4bedbac8d7a200c36e7a63855210887ac4 Mon Sep 17 00:00:00 2001 From: Marcos Casagrande Date: Mon, 24 Oct 2022 13:13:20 +0200 Subject: perf(ext/streams): fast path when consuming body of tee'd stream (#16329) Add a fast path for consuming the body of cloned `Request`/`Response`, which is very common specially when using `cache` API. --- core/01_core.js | 1 + 1 file changed, 1 insertion(+) (limited to 'core') diff --git a/core/01_core.js b/core/01_core.js index 04f0eba77..7bee019d9 100644 --- a/core/01_core.js +++ b/core/01_core.js @@ -323,6 +323,7 @@ close: (rid) => ops.op_close(rid), tryClose: (rid) => ops.op_try_close(rid), read: opAsync.bind(null, "op_read"), + readAll: opAsync.bind(null, "op_read_all"), write: opAsync.bind(null, "op_write"), writeAll: opAsync.bind(null, "op_write_all"), shutdown: opAsync.bind(null, "op_shutdown"), -- cgit v1.2.3