summaryrefslogtreecommitdiff
path: root/ext/http/lib.rs
diff options
context:
space:
mode:
authorLaurence Rowe <l@lrowe.co.uk>2023-11-13 06:04:49 -0800
committerGitHub <noreply@github.com>2023-11-13 07:04:49 -0700
commit542314a0becbba120dbee13b3f410f647b4c9cb7 (patch)
treed552d924bb68e0d5ae245cf9b65f87187cce4555 /ext/http/lib.rs
parent1ef617e8f3d48098e69e222b6eb6fe981aeca1c3 (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.rs2
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;