Benchmarking Smalltalk on JVM
mroos at roos.com
Wed Feb 1 19:45:05 PST 2012
if you know it will never escape,you should use an int directly.
Well I am trying to build a Smalltalk system which has no static types so
I have to box the ints. Since the code I showed was programmer entered I
need to stay with the boxes.
There are cases where the compiler generates the index code and there I do
use static ints if I can be sure they are not passed. It does cause some
issues when I open a debugger on the stack so I may want to keep then
anyway and thus the MutableInteger
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the mlvm-dev