diff options
author | Laurence Rowe <l@lrowe.co.uk> | 2023-11-13 06:04:49 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-13 07:04:49 -0700 |
commit | 542314a0becbba120dbee13b3f410f647b4c9cb7 (patch) | |
tree | d552d924bb68e0d5ae245cf9b65f87187cce4555 /ext/http/lib.rs | |
parent | 1ef617e8f3d48098e69e222b6eb6fe981aeca1c3 (diff) |
refactor(ext/http): refer to HttpRecord directly using v8::External (#20770)
Makes the JavaScript Request use a v8:External opaque pointer to
directly refer to the Rust HttpRecord.
The HttpRecord is now reference counted. To avoid leaks the strong count
is checked at request completion.
Performance seems unchanged on the minimal benchmark. 118614 req/s this
branch vs 118564 req/s on main, but variance between runs on my laptop
is pretty high.
---------
Co-authored-by: Matt Mastracci <matthew@mastracci.com>
Diffstat (limited to 'ext/http/lib.rs')
-rw-r--r-- | ext/http/lib.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/http/lib.rs b/ext/http/lib.rs index d47011119..0460a3707 100644 --- a/ext/http/lib.rs +++ b/ext/http/lib.rs @@ -86,7 +86,7 @@ mod reader_stream; mod request_body; mod request_properties; mod response_body; -mod slab; +mod service; mod websocket_upgrade; pub use request_properties::DefaultHttpPropertyExtractor; |