> So don't you think that at compile time it's obvious for the compiler to
> create a "compile-time boxed version of the constant", thus no boxing at
> all at run time (what I've called "object(1)", below) ? It is really a
> trivial optimization taught at most compilation courses - I would expect
> to think most compilers would implement it.

I think boxing optimizations would rather be done by the JIT compiler
(if at all), which has a much better view over those which constant
values get boxed often and which don't.

Fabian

===================================
This list is hosted by DevelopMentorĀ®  http://www.develop.com

View archives and manage your subscription(s) at http://discuss.develop.com

Reply via email to