dchest / scrypt-async-js

Fast "async" scrypt implementation in JavaScript
http://dchest.github.io/scrypt-async-js/
BSD 2-Clause "Simplified" License
140 stars 26 forks source link

Optimize for zero or negative interruptStep. #15

Closed dchest closed 9 years ago

dchest commented 9 years ago

If interruptStep is <= 0, avoid calling setTimeout, and calculate result immediately, passing it to callback.