Skip to content

Conversation

@gloryknight
Copy link

Nodes are split on defined code. By default breakCode is 44 which is comma symbol. Using setBreakCode it is possible to change the value. It may be a good idea to set breakCode to some obscure value (say 0) and ask users to change it to 44 or other value if needed.

Nodes are split on defined code. By default breakCode is 44 which is comma symbol. Using setBreakCode it is possible to change the value. It may be a good idea to set breakCode to some obscure value (say 0) and ask users to change it to 44 or other value if needed.
@gloryknight
Copy link
Author

Use following code to generate a string which results in larger compressed string in node splitting code as compared to code without splitting:
var s=["["]; for (var i=0;i<1500;i++){ s.push(JSON.stringify({"name":"test","number":i})); } s.push("]");s=s.join("");

This changes if you use random numbers Math.round(Math.random()*10000) instead of running number i in the objects.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant