magazine resources subscribe about advertising

New Architect Daily
Commentary and updates on current events and technologies

CMP Media E-Book

Download your copy today.

Research
Search for reports and white papers from industry vendors and analysts.

This Week at NewArchitect.com Subscribe now to our free email newsletter and get notified when the site is updated with new articles







Day of Defeat Online Gaming

 New Architect > Archives > 1999 > 12 > Java@Work

The Need for Speed

There's an old saying that you can never be too rich or too thin. For computer programs it might be better to say you can't be too fast or too small.

Over the years many have tried to speed up programs using a variety of techniques collectively known as optimization. Even Java is not immune to these attempts. Vendors have improved the Java Virtual Machine (JVM) and provided Just in Time (JIT) compilation.

For most Java programmers, optimization hasn't been a big concern. This is partly because of the inherent problems with optimizing Java. Another reason is that many applets are not time critical anyway. On top of that, the Internet is traditionally slower than your average program. All of that is changing, however. Today's applets are more and more performing the work of traditional desktop applications. More users than ever have high-bandwidth connections, too, so optimization is becoming more critical than ever.

Problems with Optimization

The main reason Java programs are more difficult to optimize than other types of programs is, as often stated, Java's "write once, run everywhere" philosophy.

Java programs don't execute directly on the user's computer. Instead, the computer's JVM executes the byte code. That means the JVM determines, to a large extent, how fast or slow your code will run.

Even on the same operating system you might find different JVMs. Some JVMs interpret code one byte at a time.




  Day of Defeat Online Gaming

home | daily | current issue | archives | features | critical decisions | case studies | expert opinion | reviews | access | industry events | newsletter | research | careers | info centers | advertising | subscribe | subscriber service | editorial calendar | press | contacts


Copyright © 2006 CMP Media, LLC Read our privacy policy, your California privacy rights, terms of service.
SDMG Web sites: BYTE.com, C/C++ Users Journal, Developer Pipeline, Dr. Dobb's Journal, DotNetJunkies, MSDN Magazine, Sys Admin,
SD Expo, SD Magazine, SqlJunkies, The Perl Journal, Unixreview, Windows Developer Network, New Architect

web2