lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


I think the better performance on windows is because the MSVC is slow when convert numbers <--> string.

On Wed, Apr 1, 2015 at 3:20 PM Xpol Wan <xpolife@gmail.com> wrote:
New test result:

On windows:

This json module performance a bit slower than cjson when processing booleans nulls strings. but much faster than cjson when processing numbers.

On Linux (tested on Travis).

This json only module only a bit faster when encoding numbers.

"Ordered keys" means when this module encoding lua table as object.
Keys are sorted. But this is not true for the current developing version.
A `option.sort_keys` has added and default to false.

"detect for table types"

This json module support meta table field __jsontype to specify `"array"` or `"object"` types.