Skip to content

Conversation

@lcrespom
Copy link
Contributor

@lcrespom lcrespom commented Sep 6, 2016

From the discussion in issue #443, followed repository owner suggestion and added section in README.md explaining why is async mode recommended over sync mode.

@mention-bot
Copy link

@lcrespom, thanks for your PR! By analyzing the annotation information on this pull request, we identified @ncb000gt, @defunctzombie and @youngrrrr to be potential reviewers

```

### Why is async mode recommended over sync mode?
If you are using bcrypt on a simple script, using the sync mode is perfectly fine. However, if you are using bcrypt on a server, the async mode is recommended. This is because the hashing done by bcrypt is CPU intensive, so the sync version will block the event loop and prevent your application from servicing any other inbound requests or events.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

bcrypt in a simple script

@defunctzombie
Copy link
Collaborator

LGTM, english wording could be better but someone else will come along and fix that up when they feel like it

@defunctzombie defunctzombie merged commit add2990 into kelektiv:master Sep 11, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants