summaryrefslogtreecommitdiff
path: root/ext/net/ops.rs
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2023-04-19 00:52:12 +0200
committerGitHub <noreply@github.com>2023-04-19 00:52:12 +0200
commit40e157c005be192d6f241d5ee149d980d6b808aa (patch)
tree3b92ce14f9671ea788524735557aac567df44069 /ext/net/ops.rs
parentedca01c35e7f3f76ec98dd912314db16995e2a4f (diff)
refactor(core): store v8::Global<v8::Context> in an Rc (#18749)
Alternative to https://github.com/denoland/deno/pull/18726. This was suggested by @piscisaureus. It's a bit ugly, but it does the work and makes cloning `JsRealm` very cheap, while not requiring invasive changes. Also managed to remove some vector and `v8::Global` clones which yields about 5% improvement in the "async_ops_deferred.js" benchmark. This PR: ``` time 1689 ms rate 592066 time 1722 ms rate 580720 time 1629 ms rate 613873 time 1578 ms rate 633713 time 1585 ms rate 630914 time 1574 ms rate 635324 ``` `main` branch: ``` time 1687 ms rate 592768 time 1676 ms rate 596658 time 1651 ms rate 605693 time 1652 ms rate 605326 time 1638 ms rate 610500 ```
Diffstat (limited to 'ext/net/ops.rs')
0 files changed, 0 insertions, 0 deletions