This post originated from an RSS feed registered with Java Buzz
by Simon Brown.
Original Post: Casting affects performance?
Feed Title: Simon Brown's weblog
Feed URL: http://www.simongbrown.com/blog/feed.xml?flavor=rss20&category=java
Feed Description: My thoughts on Java, software development and technology.
One of the only websites that I can access from the client site that I'm on is the IBM site, and I must admit that it's not on my list of Java related sites that I regularly visit. So, scanning through some of the forums I came across this thread about the overhead of performing object casting in Java. Interesting, and something that I've never really thought about before. I can certainly see how running all the various checks at runtime can introduce some overhead but I imagine that it's still fairly tiny. I've not read the book that's mentioned (Java Performance Tuning) but perhaps I might look it up now. Hmmm ... interesting.