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

Decode large json (size 40M) bytes from tink_serialize will frezzing.. #6

Open
sonygod opened this issue Nov 9, 2021 · 0 comments
Open

Comments

@sonygod
Copy link

sonygod commented Nov 9, 2021

//here is json file
what.zip

haxe :4.2.4
ubuntu 18.04
tink_serialize:git version
target:nodejs

public static function main() {


		var c=File.getContent("bin/what.json");

		var v:Array<Array<Array<Cue>>>=cast Json.parse(c);

		var enc = new tink.serialize.Encoder<Array<Array<Array<Cue>>>>(),
		dec = new tink.serialize.Decoder<Array<Array<Array<Cue>>>>();

		
		var bytes = enc.encode(v);

		
	
		var vv = dec.decode(bytes);//will crash...frezzing...

		trace(vv.length);

	
	}
typedef Cue = {
	var ?identifier:String;

	var start:Float;
	var end:Float;
	var text:String;
	var ?styles:String;
	var ?translate:String;
	var ?id:String;
	var ?upLoader:String;
}
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

No branches or pull requests

1 participant