This repository was archived by the owner on Nov 9, 2017. It is now read-only.
This repository was archived by the owner on Nov 9, 2017. It is now read-only.
Open
Description
Hi Guys!
In this place I see no reason to encode all string:
core.encode(JSON.stringify(_state));
You can do something like this:
JSON.stringify(_state, (k, v) => typeof v === "string" ? core.encode(v) : v);
In this case you will significantly reduce size of encoded JSON.
The same matches for decode.
Metadata
Metadata
Assignees
Labels
No labels