« Return to Thread: Thoughts about RichObjects, Implicit convertions and performance

Re: Thoughts about RichObjects, Implicit convertions and performance

by Ismael Juma :: Rate this Message:

Reply to Author | View in Thread

David Hall <dlwh <at> cs.stanford.edu> writes:
> That said, my understanding* is that HotSpot does not (yet**) do a
> great job removing object creations, which is what is needed to really
> make implicits faster.

Certainly not by default, but as it was shown in that blog entry it does well
(but not yet great) once you enable Escape Analysis in the right JDK version.
The good news is that JDK 6 Update 14 (currently available as an early access
release) is one of these.

Also, from the discussion in the comments, one can imagine that the performance
gap between no allocation and allocation that is optimised away may go away in
the future. Furthermore, in many real-world scenarios I would guess that there's
no difference as it is (not all code can benefit from aggressive loop unrolling
as the benchmark in the blog entry does).

Best,
Ismael

 « Return to Thread: Thoughts about RichObjects, Implicit convertions and performance