'java concurrency in practice'에 해당되는 글 1건

  1. Brian Goetz's Java Concurrency in Practice Interview 2008/07/28
Brian Goetz는 Sun Java evangelist 입니다.
아래 인터뷰는 writing faster-performing Java applications  에 초점이 맞춰줘 있습니다.
In the interview, Goetz gave this advice on how to write faster-performing Java code:
 Often, the way to write fast code in Java applications is to write dumb code?code that is straightforward, clean, and follows the most obvious object-oriented principles.

    This has to do with the nature of dynamic compilers, which are big pattern-matching engines. Because compilers are written by humans who have schedules and time budgets, the compiler developers focus their efforts on the most common code patterns, because that's where they get the most leverage. So if you write code using straightforward object-oriented principles, you'll get better compiler optimization than if you write gnarly, hacked-up, bit-banging code that looks really clever but that the compiler can't optimize effectively.

    So clean, dumb code often runs faster than really clever code, contrary to what developing in C might have taught us. In C, clever source code turns into the expected idiom at the machine-code level, but it doesn't work that way in Java applications...

    If I could wave a magic wand and send out one message about Java programming, it would be this: Trust the JVM. It's smarter than you think. Stop trying to outwit or outsmart it. Tell it what you want, and it will do its damnedest to make your application run as fast as it can.
View  : http://javapolis.libsyn.com/index.php?post_id=182708
DownLoad : http://media.libsyn.com/media/javapolis/Brian_Goetz_JavaPolis_2006_Interview.mp3

'Data' 카테고리의 다른 글

Scalable IO in Java  (0) 2010/03/09
네이버 나눔글꼴 좋네요.. ^^  (0) 2010/01/28
JDK 1.6 한글 문서(html)  (0) 2008/07/28
Brian Goetz's Java Concurrency in Practice Interview  (0) 2008/07/28
JDK 1.5 한글 문서(CHM)  (0) 2008/05/07