misskey-dev / node-http-message-signatures

An JavaScript (Node.js and browsers) implementation for HTTP Message Signatures (RFC 9421)
MIT License
9 stars 4 forks source link

importKeyが重たいっぽい #9

Closed tamaina closed 6 months ago

tamaina commented 6 months ago

インスペクタでパフォーマンスを調べたらimportKeyが10msgぐらいかかっている(周辺のパース周りではなく純粋にimportKey関数で)

image

tamaina commented 6 months ago

image

パフォーマンスで計測してみたらけっこう重たかった

とりあえずverify/sign関数にCryptoKeyを突っ込めるようにしたので使う人がよしなにやってくれれば良さそう

https://github.com/misskey-dev/node-http-message-signatures/commit/1949fc666e51d03260528a6f6fe037734b4c777c