jbielick / faktory_worker_node

a node.js client and worker framework for Faktory job server
https://github.com/contribsys/faktory
MIT License
143 stars 31 forks source link

Memoize hash function #361

Closed ThePletch closed 2 years ago

ThePletch commented 2 years ago

Fixes #360.

ThePletch commented 2 years ago

Closing due to @jbielick noting that iteration randomization prevents this from being particularly useful.

Theoretically, we could do dynamic programming to cache all iterations performed, but I'm guessing that won't be as big of a time saver as I think, and it'd make this code harder to understand.