Can emscriptened C++ object serialize/deserialize?

74 views
Skip to first unread message

OHTSUKA Ko-hei

unread,
Mar 9, 2013, 5:24:29 AM3/9/13
to emscripte...@googlegroups.com
Hello,

Thanks for emscripten, I'm success in sompile thin-plate-spline
coordinate transformation library to JavaScript.

It works fine, after solving transform table, transforming process is very fast.
But, solving transform table is very slow.

So I think that, if I can serialize object which already solved table
and deserialize it later, solution works very speedy.

Is there any way to serialize/deserialize emscriptened C++ object?

Regards,
Ko-hei

Sören Balko

unread,
Mar 9, 2013, 7:49:29 AM3/9/13
to emscripte...@googlegroups.com
I don't think emscripten could do that. It is basically a compiler backend, processing LLVMs intermediate representation and has no understanding of C++ language features. But why don't you simply modify the C++ code itself to add the result caching approach you were looking for?

OHTSUKA Ko-hei

unread,
Mar 9, 2013, 10:39:07 PM3/9/13
to emscripte...@googlegroups.com
Sören,

Ah, sorry, I have so little knowledge about compiled object so asking
stupid question.
I wrote serialize/deserialize method on C++ and it works fine on JavaScript.

Thank you.

2013/3/9 Sören Balko <soeren...@gmail.com>:
> I don't think emscripten could do that. It is basically a compiler backend, processing LLVMs intermediate representation and has no understanding of C++ language features. But why don't you simply modify the C++ code itself to add the result caching approach you were looking for?
>
> --
> You received this message because you are subscribed to the Google Groups "emscripten-discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to emscripten-disc...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
Reply all
Reply to author
Forward
0 new messages