auth0 / node-jws

JSON Web Signatures
http://self-issued.info/docs/draft-ietf-jose-json-web-signature.html
MIT License
709 stars 108 forks source link

perf(decode) make selecting jws parts faster #29

Closed omsmith closed 9 years ago

omsmith commented 9 years ago

micro-optimizing surely, but it's a pretty small space, and might as well limit the impact as much as possible if you ask me

Runs of jws.verify(jwsWithSig, 'hs256', 'lolol'); goes from ~115kHz to ~136kHz on my laptop.