    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.

##

ViewSpeedup()

##

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

##

ViewSpeedup

     public ViewSpeedup()

##

main

     public static void main(String args[])

run

     public void run()

  For internal use only.

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.

createView

     public DataView createView()

  For testing.

runUnitTest

     public void runUnitTest()

    All Packages  Class Hierarchy  This Package  Previous  Next  Index