- Created a flag to enable/disable optimizations
- Added a new optimization for calling functions. This will improve performance, because you can call other functions inside a loop without breaking the loop and returning to the main slow execution loop. At this point, loops still don't have conditionals and doesn't support optimizing nested loops. But this is a start. Next steps would be converting functions into state machines and in a later step optimizing into loops and ifs (in the case it is possible) as emscripten does.
- Fixed samples