Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Selective node splitting. #4

Open
wants to merge 1 commit into
base: array-lookup
Choose a base branch
from
Open

Selective node splitting. #4

wants to merge 1 commit into from

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