crypto: optimize sign.update() and verify.update() · nodejs/node@ce686c0 · GitHub
Skip to content

Commit ce686c0

Browse files
bnoordhuisMylesBorins
authored andcommitted
crypto: optimize sign.update() and verify.update()
Use `StringBytes::InlineDecoder` to decode strings inputs in C++ land instead of decoding them to buffers in JS land before passing them on to the C++ layer. This is what the other update() methods already did. PR-URL: #31767 Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: David Carlier <devnexen@gmail.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de>
1 parent 025f658 commit ce686c0

2 files changed

Lines changed: 40 additions & 7 deletions

File tree

lib/internal/crypto/sig.js

Lines changed: 10 additions & 3 deletions

src/node_crypto.cc

Lines changed: 30 additions & 4 deletions

0 commit comments

Comments
 (0)