FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Remove cost for tests · Issue #180 · bcrypt-ruby/bcrypt-ruby · GitHub

Repository navigation

Remove cost for tests #180

Description

Hi, thank you for working hard to bring BCrypt to Ruby! I apologize if this is not the appropriate place for suggestions. However, is there any way to turn off the hashing so that the cost is truly zero? This is not meant for production of course, but for spec performance improvements. I understand the algorithm has a minimum, but is there the possibility of a return here ?

Thanks in advance!

Activity

  1. jensljungblad commented on May 20, 2020

    Wondering the same thing!

  2. joshbuker commented on Mar 29, 2021

    Contributor

    Disabling the cost entirely defeats the point of even running the test in the first place, imo. I would recommend setting the cost in your test suite to be the current minimum (4) instead, which has the benefit of increasing spec speeds without the risk or potential complications of removing the cost entirely.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions


      Back | FazBrowse Home | New Git URL