diff options
author | Divy Srivastava <dj.srivastava23@gmail.com> | 2022-09-07 16:21:47 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-07 16:21:47 +0530 |
commit | 027d4d433dce32a3b715184b54e7fe6403dedec2 (patch) | |
tree | dfd70be0537dd8defce5ef14eacfa57be222746d /core/ops_builtin.rs | |
parent | d57f9d560d7b675bda3cf3ba0ac69201b73467b3 (diff) |
perf(ops): inline &[u8] arguments and enable fast API (#15731)
Diffstat (limited to 'core/ops_builtin.rs')
-rw-r--r-- | core/ops_builtin.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/ops_builtin.rs b/core/ops_builtin.rs index 26ab4bed5..02ecabc9c 100644 --- a/core/ops_builtin.rs +++ b/core/ops_builtin.rs @@ -134,12 +134,12 @@ impl Resource for WasmStreamingResource { pub fn op_wasm_streaming_feed( state: &mut OpState, rid: ResourceId, - bytes: ZeroCopyBuf, + bytes: &[u8], ) -> Result<(), Error> { let wasm_streaming = state.resource_table.get::<WasmStreamingResource>(rid)?; - wasm_streaming.0.borrow_mut().on_bytes_received(&bytes); + wasm_streaming.0.borrow_mut().on_bytes_received(bytes); Ok(()) } |