diff options
| author | Divy Srivastava <dj.srivastava23@gmail.com> | 2022-11-10 03:56:02 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-11-10 17:26:02 +0530 |
| commit | 110a0ebe690f83a21c87f1ef1a6a51af67e2a5fc (patch) | |
| tree | 7da8bbe4db832f3011913e65654e3ef4cb1b63c3 /core/Cargo.toml | |
| parent | bc33a4b2e06dd5518e0d1bbf7b538d0b00df214d (diff) | |
perf(core): minimize trivial heap allocations in `resolve_async_ops` (#16584)
* Use stack allocated array for 16 promises and spill rest to heap. the
exact number can change, maybe 128? (tokio's coop budget limit)
* Avoid v8::Global::clone for global context.
* Do not open global opresolve when its not needed.
Diffstat (limited to 'core/Cargo.toml')
| -rw-r--r-- | core/Cargo.toml | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/core/Cargo.toml b/core/Cargo.toml index d6b869138..c72497bbf 100644 --- a/core/Cargo.toml +++ b/core/Cargo.toml @@ -32,6 +32,7 @@ pin-project = "1.0.11" serde = { version = "1.0.136", features = ["derive"] } serde_json = { version = "1.0.79", features = ["preserve_order"] } serde_v8 = { version = "0.69.0", path = "../serde_v8" } +smallvec = "1.8" sourcemap = "6.1" url = { version = "2.3.1", features = ["serde", "expose_internals"] } v8 = { version = "0.54.0", default-features = false } |
