1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-22 07:14:47 -05:00
denoland-deno/ext/web
Aapo Alasuutari 2164f6b1eb
perf(ops): Monomorphic sync op calls (#15337)
Welcome to better optimised op calls! Currently opSync is called with parameters of every type and count. This most definitely makes the call megamorphic. Additionally, it seems that spread params leads to V8 not being able to optimise the calls quite as well (apparently Fast Calls cannot be used with spread params).

Monomorphising op calls should lead to some improved performance. Now that unwrapping of sync ops results is done on Rust side, this is pretty simple:

```
opSync("op_foo", param1, param2);
// -> turns to
ops.op_foo(param1, param2);
```

This means sync op calls are now just directly calling the native binding function. When V8 Fast API Calls are enabled, this will enable those to be called on the optimised path.

Monomorphising async ops likely requires using callbacks and is left as an exercise to the reader.
2022-08-11 15:56:56 +02:00
..
benches chore: fix failing bench (#14644) 2022-05-17 16:28:03 +02:00
00_infra.js perf(ops): Monomorphic sync op calls (#15337) 2022-08-11 15:56:56 +02:00
01_dom_exception.js fix(ext/web): align DOMException better with spec (#15097) 2022-07-20 10:12:18 +02:00
01_mimesniff.js cleanup(web, fetch): dedupe minesniff / "extract a MIME type" algorithm (#14044) 2022-03-20 14:31:12 +01:00
02_event.js Reland "feat: add "unhandledrejection" event support" (#15211) 2022-07-20 20:28:19 +02:00
02_structured_clone.js fix(core): Don't override structured clone error messages from V8 (#13942) 2022-03-14 19:35:15 +01:00
02_timers.js perf(ops): Monomorphic sync op calls (#15337) 2022-08-11 15:56:56 +02:00
03_abort_signal.js feat(ext/web): Add AbortSignal.timeout() (#13687) 2022-03-14 20:19:22 +01:00
04_global_interfaces.js chore: update copyright to 2022 (#13306) 2022-01-07 22:09:52 -05:00
05_base64.js perf(ops): Monomorphic sync op calls (#15337) 2022-08-11 15:56:56 +02:00
06_streams.js feat(unstable): Ability to ref/unref "Child" in "Deno.spawnChild()" API (#15151) 2022-07-18 22:24:35 +02:00
06_streams_types.d.ts chore: update copyright year (#13434) 2022-01-20 16:10:16 +09:00
08_text_encoding.js perf(ops): Monomorphic sync op calls (#15337) 2022-08-11 15:56:56 +02:00
09_file.js perf(ops): Monomorphic sync op calls (#15337) 2022-08-11 15:56:56 +02:00
10_filereader.js refactor: update runtime code for primordial check for iterators (#13510) 2022-02-07 13:54:32 +01:00
11_blob_url.js perf(ops): Monomorphic sync op calls (#15337) 2022-08-11 15:56:56 +02:00
12_location.js chore: update copyright to 2022 (#13306) 2022-01-07 22:09:52 -05:00
13_message_port.js perf(ops): Monomorphic sync op calls (#15337) 2022-08-11 15:56:56 +02:00
14_compression.js perf(ops): Monomorphic sync op calls (#15337) 2022-08-11 15:56:56 +02:00
15_performance.js fix: make Performance global an EventTarget 2022-06-16 12:05:33 -04:00
blob.rs chore(runtime): Make some ops in ext and runtime infallible. (#14589) 2022-05-13 10:36:31 +02:00
Cargo.toml chore: forward v1.24.2 release commit to main (#15410) 2022-08-05 00:10:47 +02:00
compression.rs feature(web): enable deflate-raw compression format (#14863) 2022-06-14 10:10:28 -06:00
internal.d.ts feat(ext/web): implement static Response.json (#14566) 2022-05-13 14:28:05 +02:00
lib.deno_web.d.ts fix(ext/web): add EventTarget brand checking (#14637) 2022-06-17 11:05:02 -04:00
lib.rs perf(ext/web): avoid reallocations in op_base64_atob (#15018) 2022-06-30 14:18:06 +05:30
message_port.rs chore(web, worker): Use DetachedBuffer for postMessage ops (#15133) 2022-07-11 17:27:33 +02:00
README.md Rename extensions/ directory to ext/ (#11643) 2021-08-11 12:27:05 +02:00
timers.rs chore(ops): Remove unused arguments from ops (#15315) 2022-07-26 19:34:08 +02:00

deno web

Op crate that implements Event, TextEncoder, TextDecoder and File API (https://w3c.github.io/FileAPI).

Testing for text encoding is done via WPT in cli/.