revert change from strings/keys being presented as binaries to being presented as lists of characters. ~30% speedup

This commit is contained in:
alisdair sullivan 2011-07-31 19:05:30 -07:00
parent 20f9e0368d
commit b3eb058463
23 changed files with 57 additions and 57 deletions

View file

@ -163,8 +163,8 @@ collect(_, _, _) -> erlang:error(badarg).
%% helper functions for converting jsx events to term format
event({string, String}, _Opts) -> String;
event({key, Key}, _Opts) -> Key;
event({string, String}, _Opts) -> unicode:characters_to_binary(String);
event({key, Key}, _Opts) -> unicode:characters_to_binary(Key);
event({integer, Integer}, _Opts) -> Integer;
event({float, Float}, _Opts) -> Float;
event({literal, Literal}, _Opts) -> Literal.