Jump to content

Recommended Posts

Posted

I have been wondering about the performance characteristics (space, time) of current VM's. That is VM's like CLR, JVM, AVM2, NekoVM, etc.

 

The CLR must have an advantage over JVM because it has run-time knowledge of generic types whilst Java generics is erased at compile-time and turned into casts, unless something has changed as of late.

 

My qualms with Java was the lack of compile-time generics support, meaning you'd have to generate a List, Dictionary etc. to get optimal performance, but really, since types are the typing is available at compile-time, some of these structures should auto-generated. Maybe they are, today?

 

I had a discussion about the topic of VM performance today and got the comment from some colleagues that Java performance sucks. I'm more of the oppinion that Java performance with collections might suck (?), and it might be a memory eater (?), but you could always work around some of the issues - at least the collections issue.

 

In addition there are libraries for primitive types, last I checked. This was one of the problems early on with Java - because of the lack of a unified type system, it meant that you couldn't make an ArrayList and get array-like performance because the would get erased and boxed into an Integer, or something similar.

 

It's probably not that easy to measure performance but how do you see the (current) strengths and weaknesses of JVM vs CLR - and other VM's - and where are things going?

 

 

More...

 

View All Our Microsoft Related Feeds

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...