Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
perf(core.js): introduce promise ring (denoland#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.
- Loading branch information