1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-21 23:04:45 -05:00
denoland-deno/ext
Divy Srivastava 53606de634
BREAKING(ffi/unstable): always return u64 as bigint (#23981)
The mixed `number | bigint` representation was useful optimization for
pointers. Now, pointers are represented as V8 externals. As part of the
FFI stabilization effort we want to make `bigint` the only
representation for `u64` and `i64`.

BigInt representation performance is almost on par with mixed
representation with the added benefit that its less confusing and users
don't need manual checks and conversions for doing operations on the
value.

```
cpu: AMD Ryzen 5 7530U with Radeon Graphics
runtime: deno 1.43.6+92a8d09 (x86_64-unknown-linux-gnu)

file:///home/divy/gh/ffi/main.ts
benchmark                 time (avg)        iter/s             (min … max)       p75       p99      p995
-------------------------------------------------------------------------- -----------------------------
nop                        4.01 ns/iter 249,533,690.5     (3.97 ns … 10.8 ns) 3.97 ns 4.36 ns 9.03 ns
ret bigint                 7.74 ns/iter 129,127,186.8    (7.72 ns … 10.46 ns) 7.72 ns 8.11 ns 8.82 ns
ret i32                    7.81 ns/iter 128,087,100.5    (7.77 ns … 12.72 ns) 7.78 ns 8.57 ns 9.75 ns
ret bigint (add op)       15.02 ns/iter  66,588,253.2   (14.64 ns … 24.99 ns) 14.76 ns 19.13 ns 19.44 ns
ret i32    (add op)       12.02 ns/iter  83,209,131.8   (11.95 ns … 18.18 ns) 11.98 ns 13.11 ns 14.5 ns
```
2024-05-28 09:31:09 +05:30
..
broadcast_channel refactor(docs): use @experimental instead of @tags unstable (#23884) 2024-05-22 04:31:51 -07:00
cache chore: forward v1.43.6 release commit to main (#23936) 2024-05-22 01:35:04 +00:00
canvas chore: forward v1.43.6 release commit to main (#23936) 2024-05-22 01:35:04 +00:00
console fix(runtime): use more null proto objects (#23921) 2024-05-23 00:03:35 +02:00
cron refactor: remove custom utc_now in favor of chrono::Utc:now feature (#23888) 2024-05-23 13:59:11 +02:00
crypto chore: forward v1.43.6 release commit to main (#23936) 2024-05-22 01:35:04 +00:00
fetch feat(ext/fetch): Request.bytes() and Response.bytes() (#23823) 2024-05-23 00:27:58 +00:00
ffi BREAKING(ffi/unstable): always return u64 as bigint (#23981) 2024-05-28 09:31:09 +05:30
fs fix(ext/fs): truncate files when a ReadableStream is passed to writeFile (#23330) 2024-05-28 00:14:35 +02:00
http fix(ext/websocket): change default idleTimeout to 30s (#23985) 2024-05-26 10:46:05 +05:30
io fix(runtime): use more null proto objects (#23921) 2024-05-23 00:03:35 +02:00
kv chore: update denokv_* crates (#23949) 2024-05-23 16:35:16 +02:00
napi chore: forward v1.43.6 release commit to main (#23936) 2024-05-22 01:35:04 +00:00
net fix(runtime): use more null proto objects (#23921) 2024-05-23 00:03:35 +02:00
node fix(node): set default http server response code 200 (#23977) 2024-05-26 09:32:46 +02:00
tls chore: forward v1.43.6 release commit to main (#23936) 2024-05-22 01:35:04 +00:00
url chore: forward v1.43.6 release commit to main (#23936) 2024-05-22 01:35:04 +00:00
web fix(ext/web): ReadableStream.from() allows Iterable instead of IterableIterator (#23903) 2024-05-27 21:29:54 +00:00
webgpu feat(ext/webgpu): byow support for {Free,Open}BSD (#23832) 2024-05-23 10:43:23 -07:00
webidl fix(runtime): use more null proto objects (#23921) 2024-05-23 00:03:35 +02:00
websocket fix(runtime): use more null proto objects (#23921) 2024-05-23 00:03:35 +02:00
webstorage chore: forward v1.43.6 release commit to main (#23936) 2024-05-22 01:35:04 +00:00