Re: Reducing binary size (for emscripten)
Chris Beck <[email protected]>
| Newsgroups | gmane.comp.parsers.spirit.general |
|---|---|
| Message-ID | <CAK+Cib7+6oauuauq8nOyrFwE5BnFnWdjLTA9pTg_WnTGCOJPCQ@mail.gmail.com> |
Hi, I'm also hoping to use qi parsers I wrote with emscripten. Do you have any examples you can show? I agree that a simple qi parser should not lead to multiple megabytes of js, maybe there is some build option that can help? For instance are you using c++ exceptions in your parsers, and if not are you making sure emscripten turns that off? That can have a very large impact on js size. Chris On Jul 27, 2017 8:04 AM, "Sebastian Gsänger" <[email protected]> wrote: Hi, i have written some qi-parsers i'd like to include in a web-application via emscripten. Unfortunately, i seem to be unable to reach acceptable-file sizes, with even simple parsers reaching multiple megabytes. Has anyone experience with spirit+emscripten? And are there some general do-s and don't-s i should learn about, maybe some clang-specific tips? Thanks, Sebastian ------------------------------------------------------------ ------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Spirit-general mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/spirit-general ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Spirit-general mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/spirit-general