How can i reduce applet loading time?

I have recently begun converting a gui application to an applet. The problem i have is the loading time of the applet which can be several minutes.
The gui has a progress bar which tracks the loading of the classes, images and sounds etc, once this is up and running the loading time is fairly short, however it takes forever for the gui to actually begin to display.
The code for the classes is only about 150K altogether, there seems to a period of long modem inactivity once the applet is initialized before the gui is displayed.
How can i reduce the time it takes for the applet to initialize before the gui is displayed, otherwise users will thing nothing is happening and not bother loading it.
the applet is currently at http://www.winnieinternet.com/games/startrade2095/applet/startrade2095.htm
if you need a demo of the problem, although the applet is still work in progress.
Many thanks in advance for any help
W.Coleman
www.winnieinternet.com

Some suggestions could be:
1. Bundle all classes and resource files in a jar file.
2. Try to preload the heavier files (e.g. sound files) in a background thread, instead of init() method. See an example for this in Sun's Java tutorial, under the trail 'Sound'.

Similar Messages

  • How can I reduce the recording time of the webcam?

    How can I reduce the recording time of the webcam?
    thanks
    Alex

    Keep in mind that Logic also has a limit of 8550 quarter notes. So changing the time signature to 4/8 can get longer recording times. So make sure you change this setting along with the song end. See page 93 in the reference manual.
    MBP 1.83 & MDD 1G DP   Mac OS X (10.4.7)   Logic Pro 7.2.2, Motu 828MkII+828, Firebox LC&XT, Tranzport, Unitor8+(3x)AMT-8's

  • How can I speed up loading time on Android?

    Hello!
    I'm creating an AIR app for Android and I've run into an issue with the loading time: when the user first clicks on the icon, there's 10 seconds of black screen before the first screen of my app appears. At least this happens on older Android devices. The delay is only a second or two on newer devices. I know this question has been asked before:
    http://forums.adobe.com/thread/764981
    http://forums.adobe.com/message/4035208#4035208
    http://zehfernando.com/2011/a-mobile-air-application-post-mortem/
    But I haven't been able to find an answer that's worked for me. I've tried a a preloader and I've found that even loading the tiniest app takes around 10 seconds. This is how long it took me to load an app that was just a single frame with a simple rectangle image in it. From what I've read, the issue is that the Android device is loading the AIR runtime, and this takes time - no matter how small the actual app is. I should add that I'm using captive runtime.
    I'm OK with the performance on new Android devices but, as far as I can tell, Android is so fragmented that many people are still running older devices and OS versions. So, I'd like to provide a good user experience on older devices. I think a ten second wait is just too long and will kill the entire experience for many people.
    Is there any update on this? Does anyone have a solution?
    If I can't improve the loading time, I think I'll try to only make the app available for newer devices.
    I've heard people taking about creating 'native wrapper' and somehow embedding their swf file in native code that has a loading screen. Has anyone got something like this work? I'm currently reading up on Android splash screens in native code. They seem relatively simple to create. I hope I can somehow embed my swf in a native program with a splash screen. Any help is appreciated!
    Thanks!
    Damian

    Hi Anton,
    Yes, I tried launching an empty project with just one frame and a simple rectange image embedded in it. This also took 10 seconds to load. Yes, I'm using AIR 4.0 as well. As far as I can tell, the issue is AIR itself is taking time to load onto the device - and this is independent of what I put in my program. I think I have three options:
    1. learn to live with the delay
    2. decide it's too long and not support older Android devices with my app
    3. figure out if I can embed my swf in a "native wrapper" as suggested in one of my original three links.
    I'm hoping to do 3, but I don't know if it's possible.
    Damian

  • How can we reduced the patch time for u6394500.drv

    Hi,
    This patch generally takes 14-15 hours to upgrade R12.0.4 , I want to If some body have pointers to reduce the patch applying time.
    thanks in advance
    Syed

    You could try disabling archivelog mode while patching, and use 4 workers per CPU core that you have on the database server.
    You can try using a staged appl_top approach, but that will not likely help much since 12-13 hours of that time is spent in the database portion.
    Using a Staged Applications System to Reduce Patching Downtime in Oracle Applications Release 12
    https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=734025.1

  • How can I reduce FPGA compiler time

    Hi,
    I am trying to implement a PID control loop on the FPGA of a cRIO. 
    The VI which runs on the FPGA target takes very long to compile (1h+).
    Does anyone have an idea while the compilation takes so long and how I might be able to inprove compilation time?
    The program can be found in attachment.
    Best regards,
    Jasper
    Attachments:
    PID FPGA TEST.zip ‏160 KB

    Hi Jasper,
    FPGA's normally take a very long time to compile compared to software compilations. 1 hour sounds about right for a slightly above average sized project. Compile times of anywhere from 2-4 hours (and longer for larger devices!) are not unheard of.
    Companies who are serious about FPGA compilation and rely on quick turnaround invest in servers which contain many computers to work on the compilation (this is also why when you compile, it asks you if you would like to compile on the "local sever" (your computer) or an external server).
    NI also has a cloud compiler available that will let you compile your code on their servers, however you must pay for the time. I think they offer a free trial if you wanted to see how it works.
    So if you seriously need quick turnaround, you must consider some serious hardware.
    Otherwise, you will have to queue up multiple compilations and let them run overnight like the rest of us.  
    www.movimed.com - Custom Imaging Solutions

  • How Can I reduce Query Execution time with use of filter

    Dear Experts,
    In a query execution is faster when there is no product filter and these products can be a list contaning mare than 300 items.
    I am using In operator for that filter.

    Maybe if you posted the quer[y][ies] we could get a better idea.

  • How can I reduce an Adobe file that I load fro a CD

    How can I reduce an Adobe file that I load fro a CD.
    It is 10mb and is text only.
    I need to send it in an email and would like to reduce it to 3 mb
    Any help is appreciated,
    Greg

    OK. A couple of things. You don't really have a text file. It's a scan, so it's actually a photo of letters that isn't searchable or stored as text. I'm sure that if it was really text it could be measured in tiny KB (not MB), like a long email. If you want to convert it to real text, use some software that runs Optical Character Recognition (OCR) on it. That would result in an extremely small file for truly searchable text.
    OCR software comes with many scanners but usually not with the cheapest scanners. Some shareware can do it. Acrobat can do it (the paid version not the free version).
    greg1424 wrote:
    I got it reduced to 7.9 but when I attach it to the email it shows the 10.3 MB.
    That may seem bizarre but it is normal. A file must be re-encoded for network compatibility during e-mail transmission, and that causes some types of files to bloat back up. If you can, OCR it so that you are no longer trying to send a bloated scanned photo of words and letters. If you continue to try to send it as a scan, it will remain hundreds of times larger than it needs to be. If you don't have a way of running OCR on it, at least Malcolm's suggestions above will help bring it down, maybe enough to send. But the form it is in right now is a tremendous waste of disk space.

  • How to reduce project load time?

    I am currently working on a large project (25+ Mb, thousands of vis) with something on the order of 100 classes.  Opening the project is painfully slow.  It usually takes 7-8 minutes.  I'd like to figure out a way to reduce the load time.
    What is LV's behavior regarding loading project file vis and libraries (lvlib, lvclass, etc.)?
    Are all items in the project automatically loaded when the project is opened?
    Are items not in the project but used as sub-vis automatically loaded?
    Are dynamically linked items not included in the project automatically opened?  (I imagine not.)
    Are dynamically linked items that are included in the project automatically opened?
    Thanks,
    Dave

    Hello,
    I have talked to multiple people about your issue and we honestly believe that you you are experiencing is expected behavior based on the size of the project and number of VIs used. Creating a new project will sometimes help when a project file has a corruption within it. Since you are experiencing the same behavior on multiple computers, any difference in load time will be a function of the speed, RAM, etc. of that particular computer as compared to your machine. In saying that the files are technically loaded, I am saying that their locations are known so that when they are called, they can be loaded into memory as needed. It does not have to load any portion of the VI other than the location on disk. I would not expect either of those methods to reduce your project load time. Switching to dynamic linking only changes the order in which LabVIEW searches for the files. As I stated before, files added to the project are defined by the name and location on the disk. You can think of the project file as an XML file with different pieces of information about the files. If the file cannot be found, it will try to dynamically link the files by searching for them on the disk. When this happens, it goes through a seris of locations where the files might be located. When the project is loaded, it looks for the files that are listed in the project file first. I hope this helps.
    -Zach
    Certified LabVIEW Developer

  • How to make an applet load user-defined package?

    How to have an applet load user-defined package?
    I have packages in their own directories, and the applet compiles and links with them, by use of CLASSPATH env variable. But when it comes time to run, it ignores that and does not know where the classes (in the packages) are.
    If I don't use packages and put all code in one directory, runs fine. If I use an application, I can link with and load my packages.
    I know applets can't use things like CLASSPATH for security reasons, but still, they should be able to be compiled out of several packages, why do I have to put all code together??

    OK, for reference for future newbies, here's the answer:
    use CODEBASE attribute in your html file (if on Windows server, don't use drive letter but relative path to .html file, Unix style, and put all your .class files beneath that, for example, in your .html file
    <applet
    CODEBASE="..\class
    and then have package bar Bar.class file, in ..\class\bar

  • How can I reduce the size of stardard css and js of BSP?

    Hi all,
    I have problem with the js and css standard of sap.
    When I enter the first each in the portal, this css are loaded (after cache):
         - sapUrMapi_ie6.js with 333331 bytes
         - ur_ie6.css with 174256 bytes
         - popup_ie6.js with 22690 bytes
         - events.js 22886 bytes
    Total: more of less 1MB of datas.
    How can I reduce the size of these files?
    Can i not use this files and see the tabscripts or others object htmlb?
    thanks

    Hi Benito,
    these files contain all "stuff" that the BSP Extensions need to work. If you decide to code your own HTML content you don't need them.
    The other thing to consider is that these files should really be cached b your browser so this overhead only happens once.
    Cheers
    Graham

  • Can I reduce the execution time for a step in a TestStand ?

    Hi,
    I calculated the a single step execution time for TestStand Ver 2.0. It comes to around 20 milliseconds/step. Can I reduce this excution time ?
    Are there any settings available for configuring execution time parameters except result logging and exception handlings to reduce the execution time ?

    It's difficult to tell how you what time you are reporting for your step. Clearly we don't have control of the time it takes your code to execute. However, we are constantly working on reducing the overhead of calling the code. In addition, you don't mention the type of step you are calling. One way to have a common reference is to use the example \Examples\Benchmarks\Benchmarks.seq. Below have have posted the results of running this sequence with both tracing and result collection enabled and then disabled. I have a 700 MHz, 128 MB RAM, Dell PIII laptop. In this example there is no code within the code modules. You notice that calling a DLL has the least overhead with a minimum of 7.459 ms with tracing and results enabled and 0.092 ms with tracing and results disabled. Although not included below, if I enable results be disable tracing I get a minimum time of 0.201 ms, a 100x improvement on your time.
    With Results and Tracing enabled.
    7.578 milliseconds per step for CVI Standard Prototype - Object File
    7.579 milliseconds per step for CVI Standard Prototype - DLL
    7.459 milliseconds per step for DLL Flexible Prototype
    8.589 milliseconds per step for DLL Flexible Prototype Numeric Limit
    9.563 milliseconds per step for DLL Flexible Prototype Numeric Limit with Precondition
    10.015 milliseconds per step for DLL Flexible Prototype Numeric Limit with Precondition and 4 Parameters
    7.868 milliseconds per step for ActiveX Automation
    8.892 milliseconds per step for LabVIEW Standard Prototype
    With tracing and results disabled.
    0.180 milliseconds per step for CVI Standard Prototype - Object File
    0.182 milliseconds per step for CVI Standard Prototype - DLL
    0.092 milliseconds per step for DLL Flexible Prototype
    0.178 milliseconds per step for DLL Flexible Prototype Numeric Limit
    0.277 milliseconds per step for DLL Flexible Prototype Numeric Limit with Precondition
    0.400 milliseconds per step for DLL Flexible Prototype Numeric Limit with Precondition and 4 Parameters
    0.270 milliseconds per step for ActiveX Automation
    1.235 milliseconds per step for LabVIEW Standard Prototype

  • "Other" storage 261GB, how can I reduce this?

    I have a MacBook Pro early 2008 2.4GHz with 4GB memory and a 500GB hard drive, running Mountain lion 10.8.
    When I entered the "Storage" section in "About This Mac", I found out that 261GB are in some yellow bar called "Other", and another 85GB are in the "Backups" category. This is srtrange because I don't have any backups on my computer, and I've never backed up my computer using time machine or any other software.
    44GB are movies, apps, photos, etc...
    I ran the OmniDiskSweeper and it only found 137GB in my hard drive. That means it didn't find 255GB of storage.
    How can I reduce this "Other" storage? and where can I find those backups?
    Thank you,
    YanivWolf.

    First, empty the Trash if you haven't already done so. Use a tool such as OmniDiskSweeper to explore your volume and find out what's taking up the space. Proceed further only if the problem hasn't been solved. ODS can't see the whole filesystem when you run it just by double-clicking; it only sees files that you have permission to read. To really see everything, you have to run it as root. Back up all data now. Launch the Terminal application in any of the following ways: ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.) ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens. ☞ Open LaunchPad. Click Utilities, then Terminal in the icon grid. After installing ODS in the Applications folder, drag or copy — do not type — the following line into the Terminal window, then press return:sudo /Applications/OmniDiskSweeper.app/Contents/MacOS/OmniDiskSweeper
    You'll be prompted for your login password, which won't be displayed when you type it. You may get a one-time warning not to screw up.
    I don't recommend that you make a habit of this. Don't delete anything while running ODS as root. When you're done with it, quit it and also quit Terminal.

  • How can we reduce Row Chaining?

    In a 10gR2 db, how can i reduce row chaining in tables?

    Hi,
    First, the prevention techniques for chained rows vs. migrated rows is a bit different. Note that both chained rows and migrated (relocated) rows manifest as "table fetch continued row" in v$sysstat and stats$sysstat for STATSPACK and dba_hist_sysstat for AWR.
    Preventing chained rows - Chained rows can occur when a row is to large for a data block. In these cases, moving large objects into a tablespace with a larger blocksize can often relieve chained rows.
    Preventing migrated rows - Migrated rows occur when a row expands (usually w2ith a varchar2 data type), and there is not enough reserve defined by PCTFREE for the row to expand. In this case, you adjust the PCTFREE to ensure that future rows will have room to expand and reorganize the table to remove the fragments.
    On some tables which are stored tiny and grow huge, you may need to set PCTFREE to a "large" value, so that only one row is stored per block. For example, if I have a row with a varchar2 that is stored at 2k and grows to 30k, I would need to use a 32k blocksize and set PCTFREE=95 so that only one rows is stored on each data block. That way, at update time, there will be room for the row to expand without fragmenting.
    Operationally, Oracle consultant Steve Adams offers this tip for finding the difference between chained and migrated rows:
    http://www.freelists.org/archives/oracle-l/10-2008/msg00750.html
    +"You can tell the difference between row migration and chaining by listing the chained rows with ANALYZE table LIST CHAINED ROWS and then fetching the first column from each "chained row" in a single query.+
    +The count of continued row fetches will be incremented for every migrated row, but not for most chained rows (unless the first cut point happens to fall with the first column, which should be rare)."+
    Hope this helps . . .
    Donald K. Burleson
    Oracle Press author
    Author of "Oracle Tuning: The Definitive Reference"
    http://www.rampant-books.com/book_2005_1_awr_proactive_tuning.htm

  • How can I stop the loading of "Getting Started with Mozilla Firefox?", which has greatly slowed down the startup of Firefox.

    Firefox used to start up fairly quickly, but now it loads an additional more complicated tab, which has greatly slowed down the start up process. How can I eliminate the loading of this time waster?

    See these articles for some suggestions:
    *https://support.mozilla.com/kb/Firefox+has+just+updated+tab+shows+each+time+you+start+Firefox
    *https://support.mozilla.com/kb/How+to+set+the+home+page - Firefox supports multiple home pages separated by '|' symbols
    *http://kb.mozillazine.org/Preferences_not_saved
    Use this to go to the Firefox Profile Folder
    *Help > Troubleshooting Information > Profile Directory: Open Containing Folder
    *http://kb.mozillazine.org/Profile_folder_-_Firefox

  • My daughter accidentally dumped my iTouch into the tub.  It is ruined.  How can I receive my one time regrant on all the songs I've lost.  There were approximately 80 songs I purchased on iTunes.  They get me through the day!  Please help!

    My daughter accidentally dumped my iTouch into the bath tub.  It is ruined.  How can I receive my one time regrant to get back the 80 plus songs I purchased and downloaded on iTunes?  I'm devastated....please help!  My husband bought me the new iPhone4 for my new Mother's Day gift.  I would like to download all the songs I lost.  Thank you so much!

    You can redownload the songs as many times as you want, the "one time regrant" no longer exists. Make sure you are using the same apple id on both your dead itouch and your iphone 4. On your iphone 4 go to the itunes app > Purchased (may be under more based on your settings) at the top click not on this iphone, click all songs then click the little cloud next to each song you want to redownload. It will prompt you for your id and password and the begin your download

Maybe you are looking for

  • Adding print button to interactive report

    For now I have the downloaded to PDF option checked so the user can print an interactive report via the widget. I would like to have a print button on the report also. Has anyone got any of the java script stuff working off of a button?

  • ArtifactGenerator Warning Msg

    I am getting warning message to the new custom tables, while running artefact generator. Is there any way to avoid this warning? - 2010-05-10 21:49:19,094 [main] INFO (artifactgen.metadata.DatabaseRepository) Retrieving all tables for access by entit

  • What is the use of ABC indicator in functional location segment.

    Hi Expert, I want to know about ABC indicator in functional location segement actually, what is the use of indicators in master data? Regards, Ram Rathode

  • Optimizing Issue...

    I'm using iMovie 11, trying to make a trailer. I keep getting told that the clip I'm trying to use needs to be optimized so I do but when its done, all I see is a green screen and hear the audio... Any suggestions?

  • Easy Reports Question

    Hi all, Platform Windows NT/2000, Reports 2.5 I have to print the report to a file. The thing is that my report is very wide. It contains a lot of fields, and I want them all in one line, because ultimately it will be read in excel. Now i set the MOD