fixed a nasty performance regression caused by a misordered clause

This commit is contained in:
alisdair sullivan 2010-05-24 16:41:03 -07:00
parent fca157c116
commit d42acf4411
2 changed files with 6 additions and 3 deletions

View file

@ -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, []).