All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class org.jcon.df.edit.ViewSpeedup


java.lang.Object

   |

   +----org.jcon.df.edit.ViewSpeedup


public class ViewSpeedup
extends Object
implements Runnable
Speeds up DataEditor view creation, apparently by causing the df, awt and os to init and cache various objects and peers. Tenfold speed improvement by reducing time from 12 to ??? seconds

We accomplish this by simulating creating a view with most widgets and classes used by DataView.

Used in gov.cdc.atsdr.client.UserSecurity, resulting in a mere 5% faster on 1st time for 20sec task.


Constructor Index

 o ViewSpeedup()

Method Index

 o createView()
For testing.
 o main(String[])
 o run()
For internal use only.
 o runUnitTest()
 o speedup()
To provoke the speedup call this method once.

Constructors

 o ViewSpeedup

 public ViewSpeedup()

Methods

 o main

 public static void main(String args[])

 o run

 public void run()

For internal use only.

 o speedup

 public void speedup()

To provoke the speedup call this method once. It runs the speedup in a low priority thread, so as not to slow down the application.

 o createView

 public DataView createView()

For testing.

 o runUnitTest

 public void runUnitTest()



All Packages  Class Hierarchy  This Package  Previous  Next  Index