diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2023-04-26 20:02:27 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-26 20:02:27 +0200 |
commit | 77e25a656eca0cb1639ae39c515ac6c5f86d2ac9 (patch) | |
tree | 7a72f0ba696c3ac5171593034b765eecdb9b5f20 /core/lib.rs | |
parent | 14aaa73c0200d7fac4aa224d623e28b5955daab9 (diff) |
refactor(core): simplify op types and codegeneration (#18843)
About 2% improvement on WS/HTTP benchmarks, possibly unlocking more
optimizations in the future.
---------
Co-authored-by: Matt Mastracci <matthew@mastracci.com>
Diffstat (limited to 'core/lib.rs')
-rw-r--r-- | core/lib.rs | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/core/lib.rs b/core/lib.rs index 70dadfc6a..cb16c2654 100644 --- a/core/lib.rs +++ b/core/lib.rs @@ -89,11 +89,8 @@ pub use crate::modules::ModuleType; pub use crate::modules::NoopModuleLoader; pub use crate::modules::ResolutionKind; pub use crate::normalize_path::normalize_path; -pub use crate::ops::Op; -pub use crate::ops::OpAsyncFuture; pub use crate::ops::OpCall; pub use crate::ops::OpError; -pub use crate::ops::OpFn; pub use crate::ops::OpId; pub use crate::ops::OpResult; pub use crate::ops::OpState; @@ -135,6 +132,10 @@ pub mod _ops { pub use super::ops::to_op_result; pub use super::ops::OpCtx; pub use super::ops::OpResult; + pub use super::runtime::map_async_op1; + pub use super::runtime::map_async_op2; + pub use super::runtime::map_async_op3; + pub use super::runtime::map_async_op4; pub use super::runtime::queue_async_op; pub use super::runtime::queue_fast_async_op; pub use super::runtime::V8_WRAPPER_OBJECT_INDEX; |