Aliaksei Syrel wrote
Hi
Did you know that `2 * 10.2` is two times slower than `2 asFloat * 10.2`?
Here is performance test (inspect result, takes ~10s to complete):
http://ws.stfx.eu/4T0CR23OURZWWho knows how performance can be improved with this knowledge...
Cheers,
Alex
And on pre-Spur VM it's like 6 or 7 times slower.
More interesting fact is that (float * int) gets optimized, but (int * float) doesn't.
It would be cool to have an up-to-date document explaining preformance characteristics of Pharo code and optimizations done by compiler/JIT.
Right now only source of such stuff seems to be the blog of Clément Béra (
https://clementbera.wordpress.com/)