crypto: avoid std::function · nodejs/node@fa0e8d7 · GitHub
Skip to content

Commit fa0e8d7

Browse files
tniessenmarco-ippolito
authored andcommitted
crypto: avoid std::function
Using a template type lets the compiler choose an appropriate type that likely is more efficient than std::function since the lambda expressions at the call sites do not capture any values from surrounding scopes. PR-URL: #53683 Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: Filip Skokan <panva.ip@gmail.com> Reviewed-By: Yagiz Nizipli <yagiz.nizipli@sentry.io> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Mohammed Keyvanzadeh <mohammadkeyvanzade94@gmail.com>
1 parent ef5dabd commit fa0e8d7

1 file changed

Lines changed: 5 additions & 6 deletions

File tree

src/crypto/crypto_keys.cc

Lines changed: 5 additions & 6 deletions

0 commit comments

Comments
 (0)