Up to now we have been focused on producing correct code and we just started working to optimize the generated code from the size point of view. You can use a regular JavaScript minimizer to reduce the code size. In the future duetto will directly generate minimized code.
Duetto already uses static analysis to only compile what is actually used. The part of the standard library that you see is the one which initializes C++ iostream functionalities and it's always included and executed even on regular platform. We plan to add a smarter analysis to handle this case as well. About the string code, you've spotted an optimization that we have already planned to do. Generally speaking expect improvements on this area since improving code side (and performance) is one of our focus now that duetto is mature enough to be used on real world code. -- You received this bug notification because you are a member of Leaningtech Team, which is subscribed to Duetto. https://bugs.launchpad.net/bugs/1284811 Title: Huge output files Status in Duetto: C++ for the Web: Confirmed Bug description: For your example program dom1 that is compiled with : clang++ -O3 -target duetto dom1.cpp -o test1.js I got from 419 bytes of original code 2.03 MB of compiled javascript. That seems to me a bug. It looks like that the standard library code is included in the output. It should be posible to get rid of it by using static analysis and dead code elemination. To manage notifications about this bug go to: https://bugs.launchpad.net/duetto/+bug/1284811/+subscriptions -- Mailing list: https://launchpad.net/~leaningtech-dev Post to : [email protected] Unsubscribe : https://launchpad.net/~leaningtech-dev More help : https://help.launchpad.net/ListHelp

