summaryrefslogtreecommitdiff
path: root/cli/program_state.rs
diff options
context:
space:
mode:
authorAaron O'Mullan <aaron.omullan@gmail.com>2021-04-07 14:38:54 +0200
committerGitHub <noreply@github.com>2021-04-07 14:38:54 +0200
commit2865f39bec6da135a2d2d679a65e7ff139131bd7 (patch)
treeea575143149a97815db7942898074d644b095ecc /cli/program_state.rs
parentde641838831a90b142eceab5aa9df269084d83cc (diff)
perf(core.js): introduce promise ring (#9979)
This is another optimization to help improve the baseline overhead of async ops. It shaves off ~55ns/op or ~7% of the current total async op overhead. It achieves these gains by taking advantage of the sequential nature of promise IDs and optimistically stores them sequentially in a pre-allocated circular buffer and fallbacks to the promise Map for slow to resolve promises.
Diffstat (limited to 'cli/program_state.rs')
0 files changed, 0 insertions, 0 deletions