Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.gui > #4507
| From | "Nigel Wade" <nigel.wade@THRWHITE.remove-dii-this> |
|---|---|
| Subject | Re: Why are Swing applica |
| Message-ID | <ggmedu$igb$1@south.jnrs.ja.net> (permalink) |
| Newsgroups | comp.lang.java.gui |
| References | <492d964a$0$18637$5a62ac22@per-qv1-newsreader-01.iinet.net.au> |
| Date | 2011-04-27 15:50 +0000 |
| Organization | TDS.net |
To: comp.lang.java.gui Qu0ll wrote: > I can only really relate my experiences on Windows machines but I have > noticed that even the most trivial of Swing applications tends to be much > "sleepier" than a full-blown SWT application such as Eclipse (or native > application for that matter). By "sleepier" I refer to their habit of > requiring several seconds of blank screen and ferocious disk activity to > respond after having been minimised for a fair length of time. An application which requires several seconds of frenetic disk activity in order to respond means various pages of the application have been swapped to disk. This may be due to a long period of inactivity, or because there is insufficient RAM and it was required by another process. > > I thought this problem was going to be fixed in Java 6 but it is still very > prevalent in Update 10. Sun/Java cannot remedy hardware and OS limitations. If you don't have sufficient RAM or the OS decides to give what RAM there is to other processes there's not much that Java can do to prevent that. It really depends on how long your application is running/inactive and what other tasks your system is doing during that time. The longer it's inactive the more likely those inactive pages are to be handed over to some more deserving task by the OS. RAM which is full of inactive pages is wasted RAM, and no sensible OS likes wasted RAM. > Anyway, the point is why do Swing applications > suffer much more than large SWT applications? Is it just because Swing is > so complex/bulky? I would have thought that JEE Eclipse was equally as > bulky and complex. > Why it affects Swing more than SWT is not immediately obvious. Maybe the Swing native libraries are more susceptible to swapping than the SWT libraries, maybe SWT takes advantage of native Windows libraries which remain resident. This is pure conjecture of course. -- Nigel Wade --- * Synchronet * The Whitehouse BBS --- whitehouse.hulds.com --- check it out free usenet! --- Synchronet 3.15a-Win32 NewsLink 1.92 Time Warp of the Future BBS - telnet://time.synchro.net:24
Back to comp.lang.java.gui | Previous | Next — Previous in thread | Next in thread | Find similar
Why are Swing application "Qu0ll" <qu0ll@THRWHITE.remove-dii-this> - 2011-04-27 15:50 +0000
Re: Why are Swing applica "Lew" <lew@THRWHITE.remove-dii-this> - 2011-04-27 15:50 +0000
Re: Why are Swing applica "Qu0ll" <qu0ll@THRWHITE.remove-dii-this> - 2011-04-27 15:50 +0000
Re: Why are Swing applica "Stefan Rybacki" <stefan.rybacki@THRWHITE.remove-dii-this> - 2011-04-27 15:50 +0000
Re: Why are Swing applica "Qu0ll" <qu0ll@THRWHITE.remove-dii-this> - 2011-04-27 15:50 +0000
Re: Why are Swing applica "Nigel Wade" <nigel.wade@THRWHITE.remove-dii-this> - 2011-04-27 15:50 +0000
Re: Why are Swing applica "Qu0ll" <qu0ll@THRWHITE.remove-dii-this> - 2011-04-27 15:50 +0000
Re: Why are Swing applica "Roedy Green" <roedy.green@THRWHITE.remove-dii-this> - 2011-04-27 15:51 +0000
Re: Why are Swing applica "Karsten Lentzsch" <karsten.lentzsch@THRWHITE.remove-dii-this> - 2011-04-27 15:51 +0000
Re: Why are Swing applica "Roedy Green" <roedy.green@THRWHITE.remove-dii-this> - 2011-04-27 15:51 +0000
Re: Why are Swing applica "Karsten Lentzsch" <karsten.lentzsch@THRWHITE.remove-dii-this> - 2011-04-27 15:51 +0000
Re: Why are Swing applica "Daniel Pitts" <daniel.pitts@THRWHITE.remove-dii-this> - 2011-04-27 15:51 +0000
csiph-web