flexxui / pscript

Python to JavaScript compiler
http://pscript.readthedocs.io
BSD 2-Clause "Simplified" License
256 stars 25 forks source link

Performance tweaks for addition of numbers #34

Closed almarklein closed 5 years ago

almarklein commented 5 years ago
a = b + 3  # was already good by detecting ast Num/Str node
a = b + 3 + a  # would work for one of the additions but not the other
a += 3  # was also wrapped in a pyfunc_op_add