Skip to content

Commit

Permalink
Change default mechanism to NIF
Browse files Browse the repository at this point in the history
  • Loading branch information
Hunter Morris committed Mar 12, 2012
1 parent bc8fb23 commit 32814ac
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions README.rst
Expand Up @@ -48,10 +48,10 @@ application's environment:

``mechanism``
Specifies whether to use the NIF implementation (``'nif'``) or a
pool of port programs (``'port'``). Defaults to ``'port'``.
pool of port programs (``'port'``). Defaults to ``'nif'``.

`WARNING: the NIF implementation will block Erlang VM scheduler
threads and is not suitable for many applications.`
`Note: the NIF implementation no longer blocks the Erlang VM
scheduler threads`

``pool_size``
Specifies the size of the port program pool. Defaults to ``4``.
Expand Down
4 changes: 2 additions & 2 deletions src/bcrypt.app.src
@@ -1,7 +1,7 @@
%% -*- mode: erlang;erlang-indent-level: 2;indent-tabs-mode: nil -*-
{application, bcrypt,
[{description, "An Erlang wrapper (NIF or port program) for the OpenBSD password scheme, bcrypt."},
{vsn, "0.4.1"},
{vsn, "0.5.0"},
{registered, [bcrypt_sup, bcrypt_nif_worker, bcrypt_port_sup, bcrypt_pool]},
{mod, {bcrypt_app, []}},
{applications, [kernel, stdlib, crypto]},
Expand All @@ -10,7 +10,7 @@
{default_log_rounds, 12},

% Mechanism to use 'nif' or 'port'
{mechanism, port},
{mechanism, nif},

% Size of port program pool
{pool_size, 4}
Expand Down

0 comments on commit 32814ac

Please sign in to comment.