lib: reduce overhead of `SafePromiseAllSettledReturnVoid` calls · nodejs/node@ed7305e · GitHub
Skip to content

Commit ed7305e

Browse files
aduh95RafaelGSS
authored andcommitted
lib: reduce overhead of SafePromiseAllSettledReturnVoid calls
It was simply calling `SafePromiseAllSettled`, which itself calls `arrayToSafePromiseIterable` which wraps all promises into new `SafePromise` object and wraps it into a `SafeArrayIterator`. Since we don't care about the return value, we can take some shortcuts. PR-URL: #51243 Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Vinícius Lourenço Claro Cardoso <contact@viniciusl.com.br> Reviewed-By: James M Snell <jasnell@gmail.com>
1 parent 96d64ed commit ed7305e

1 file changed

Lines changed: 11 additions & 3 deletions

File tree

lib/internal/per_context/primordials.js

Lines changed: 11 additions & 3 deletions

0 commit comments

Comments
 (0)