>From Kohsuke Kawaguchi email - How do other language implementers cope with this?
We are doing a Smalltalk implementation and have seen that the handling of 'boxed' integers is a possible performance issue. I say possible because while it is an obvious issue for integer intensive operations ( like Hanoi ) our large scale benchmarks run at a similar speed to the native versions. The larger issue in our use of boxed integers ( boxed in our own wrapper) is the object creation and collection overhead. For instance indexing over a million element array involves creating and discarding a million integers. Currently we use a cache plus a mutable integer approach to minimize this but I have yet to really benchmark its performance. The solution to this may lie in FixNums ( ints encoded in pointers ) but that is some time off and may not be of a form useful to us. regards mark
_______________________________________________ mlvm-dev mailing list mlvm-dev@openjdk.java.net http://mail.openjdk.java.net/mailman/listinfo/mlvm-dev