-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

> Because Swing is a fully lightweight library, it can't rely on any of the
> operating-system-specific constructs underneath the JVM to more efficiently
> make use of the CPU. Instead, it spins off a daemon thread to (basically)
> poll the OS for the mouse position and information and broadcast that
> information to the Swing JComponents under the mouse pointer at that
> moment. Inefficient, yes, but that's what "Write Once, Run Anywhere" buys
> you--necessary inefficiency sacrificed on the altar of portability. :)

Hmm. You may be correct, but I'm pretty sure that doesn't account for *that*
much CPU. I've had smaller apps running and they don't consume much CPU.

I think that the high CPU consumtion can be attributed to the dreaded
garbage collector doing it's thing once every second or so...

I guess the Sun JDK doesn't use a very efficient algorithm (they're hard to
write, I know). If you launch a large baby like Netbeans Developer you'll see
the same effect.

/ Peter Schuller

- ---
PGP userID: 0x5584BD98 or 'Peter Schuller <[EMAIL PROTECTED]>'
E-Mail: [EMAIL PROTECTED] Web: http://hem.passagen.se/petersch
Help create a free Java based operating system - www.jos.org.



-----BEGIN PGP SIGNATURE-----
Version: PGPfreeware 5.0i for non-commercial use
Charset: noconv

iQA/AwUBNzCJPMBfJ1FVhL2YEQJQZACgou4cgMP4y4AXrVNIAemqNZf824gAoJR9
0KFETbIBNAXjdg4j9Tf4DEyA
=UJxr
-----END PGP SIGNATURE-----


----------------------------------------------------------------------
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to