fixed a nasty performance regression caused by a misordered clause
This commit is contained in:
parent
fca157c116
commit
d42acf4411
2 changed files with 6 additions and 3 deletions
|
@ -1,9 +1,12 @@
|
|||
-module(jsx).
|
||||
|
||||
-export([decoder/0, decoder/2]).
|
||||
-export([decoder/0, decoder/2, decode/3]).
|
||||
|
||||
-include("jsx_common.hrl").
|
||||
|
||||
decode(JSON, Callbacks, Opts) ->
|
||||
(decoder(Callbacks, Opts))(JSON).
|
||||
|
||||
decoder() ->
|
||||
decoder(none, []).
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue