iso
iso copied to clipboard
Performance improvement
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.