revert change from strings/keys being presented as binaries to being presented as lists of characters. ~30% speedup
This commit is contained in:
parent
20f9e0368d
commit
b3eb058463
23 changed files with 57 additions and 57 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue