Slow first time execution

Hi everybody!
I 've written simple java application which uses the "substance" look'n'feel and that makes it to run very slowly for the first time when you run it, I used simple splash screen mechanism to show the main frame after executing main method, but when you click any button for the first time the whole application just hangs up for about 10 seconds, after that first pressing everything works fine.With java or windows l'n'f everything works without startup problem. Does anyone have any idea what is taking so long to execute button actions for the first time with "substance"?
Any help would be appreciated! Thx!

All right!!!! I see, I have to answer to my question myself. Hey people! I have found the answer, actually one of them probably, maybe you know that already but I didn't , the button which I wanted to press was big(this for sure you didn't know), when I made it smaller the first execution time decreased accordingly, now I've got it 10 times smaller button and you almost can't see the difference between first pressing and the next, I thought the JButton takes as much memory or processing work as another JButton but this is not true - as you guys have probably heard before from one girl or another - Size really matters!!! :)

Similar Messages

  • First time execution problem

    Hi All,
    I have created a report on Vendors, used the tables LFA1, LFM1, EKKO, EKPO, T024.
    When I execute the report for the first time it's taking around 8 Mins., On the other hand, When I execute the same report with the same variant, it's taking around 30 Seconds!
    When I check the report in SM50, its showing EKPO sequential read.
    Any, Hint to reduce the first time execution time.
    Thanks,
    Kal Chand

    Hi All,
    Thanks for your interest,
    I am working on the Development&QA server.
    This report is similar to standard report "MKVZ",
    Adding additional fields...
    MARK: I am coping the select statements
    Regards,
    Kal Chand
    START-OF-SELECTION.
    SELECT PLIFNR PKTOKK PNAME1 PSTRAS PORT01 PPSTLZ PLAND1 PSORTL QEKORG QVERKF QTELF1 FROM LFA1 AS P INNER JOIN LFM1 AS Q ON QLIFNR = PLIFNR INTO TABLE IT_VEND WHERE PLIFNR IN S_LIFNR AND QEKORG IN S_EKORG AND PSORTL IN S_SORTL AND PKTOKK IN S_KTOKK AND QSPERM NE 'X'.
    SELECT DISTINCT PLIFNR PEKORG PEKGRP QWERKS FROM EKKO AS P
    INNER JOIN EKPO AS Q ON QEBELN = PEBELN INTO CORRESPONDING FIELDS OF TABLE IT_PURC FOR ALL ENTRIES IN IT_VEND WHERE LIFNR = IT_VEND-LIFNR.
    SELECT EKGRP EKNAM FROM T024 INTO TABLE IT_T024 FOR ALL ENTRIES IN IT_PURC WHERE EKGRP = IT_PURC-EKGRP AND EKNAM NE ' '.

  • Select statement is taking lot of time for the first time Execution.?

    Hi Experts,
    I am facing the following issue. I am using one select statement to retrieve all the contracts from the table CACS_CTRTBU according to FOR ALL ENTRIES restriction.
    if p_lt_zcacs[] is not initial.
    SELECT
               appl ctrtbu_id version gpart
               busi_begin busi_end tech_begin tech_end
               flg_cancel_obj flg_cancel_vers int_title
             FROM cacs_ctrtbu INTO TABLE lt_cacs FOR ALL ENTRIES IN p_lt_zcacs
                                                    WHERE
                                                    appl EQ gv_appl
                                                    AND ctrtbu_id EQ p_lt_zcacs-ctrtbu_id
                                                    AND  ( flg_cancel_vers EQ '' OR version EQ '000000' )
                                                    AND flg_cancel_obj EQ ''
                                                    AND busi_begin LE p_busbegin
                                                    AND busi_end GT p_busbegin.
    endif.
    The WHERE condition is in order with the available Index. The index has  APPL,CTRTBU_ID,FLG_CANCEL_VERS and FLG_CANCEL_OBJ.
    The technical settings of table CACS_CTRTBU says that the "Buffering is not allowed"
    Now the problem is , for the first time execution of this select statement, with 1.5 lakh entries in P_LT_ZCACS table, the select statement takes 3 minutes.
    If I execute this select statement again, in another run with Exactly the same parameter values and number of entries in P_LT_ZCACS ( i.e 1.5 lakh entries), it gets executed in 3-4 seconds.
    What can be the issue in this case? Why first execution takes longer time?.. Or is there any way to modify the Select statemnt to get better performance.
    Thanks in advance
    Sreejith A P

    Hi,
    >
    sree jith wrote:
    > What can be the issue in this case? Why first execution takes longer time?..
    > Sreejith A P
    Sounds like caching or buffering in some layer down the i/o stack. Your first execution
    seems to do the "physical I/O" where your following executions can use the caches / buffers
    that are filled by your first exectution.
    >
    sree jith wrote:
    > Or is there any way to modify the Select statemnt to get better performance.
    > Sreejith A P
    If modifying your SELECTS statement or your indexes could help depends on your access details:
    does your internal table P_LT_ZCACS  contain duplicates?
    how do your indexes look like?
    how does your execution plan look like?
    what are your execution figures in ST05 - Statement Summary?
    (nr. of executions, records in total, total time, time per execuiton,  records per execution, time per record,...)
    Kind regards,
    Hermann

  • Interface is taking lots of time for first time execution

    Hello all,
    I have one inbound interface in which i am updating T-code CO01 ,CO15 , MIGO and MB1A respectively
    depending upon the condition in the incoming file.
    When ever i run this interface for the first time it takes lots of time for execution, but when i run the same interface again with the same file it is taking half time of the first time execution.
    I am not able to understand why it is taking lots of time for first execution and after that execution time is redued very much with the same file
    Kindly help
    Thanks
    Sachin Yadav

    thank you santhosh for your reply..
    as this program is in Production system it it taking 3 to 4 hour to execute.
    Previously it was OK but from last 2 to 3 moths it is taking more time.
    when i debug the code it is working fine. I din't find any point at which it is taking more time.
    I am not aware about buffers and SAP memory. can you plz help
    Do you have any idea why this is happening.
    Or how can i rectify the problem?
    Thanks
    Sachin

  • Slow first time file/folder, etc. opening

    On my G4/450/1.5gb ram/OS9.2.2, the first time I do anything (open a file or folder or even the Apple Menu Items), it's very slow to open. After it opens once, that particular item opens normally from then on, but not subsequent openings of other items. This is a constant problem. I've made no changes to the computer and my memory control panel is set to default. I know the first time normally takes a little longer, but this is much too long; maybe 5 to 7 seconds. Never was this way. Anyone? ... thanx

    Now I'd normally say Don has it covered. From the description it sounds like the Finder looking for the icons to display for the items in a folder or the icons for the Apple Menu Items.
    But 5 to 7 seconds is a bit excessive for this even with a desktop spread all over the disk.
    So only three questions, which may mean nothing at all:
    Does it still happen if you boot into Base Extensions (in Extension Manager control panel) ? I'm wondering if it's an extension or control panel used to enhance the appearance of the Finder, something like Kaliedoscope or similar. Just reboot into Base Extensions and see if it is still as sluggish.
    1.5GB or RAM, so virtual memory is going to be off (OS9 can't use that much memory). Not an issue, but in the Memory control panel, what size is the Disk Cache ? It's normally a percentage of the installed RAM, but tops out at a specific value, maybe 768K, but you can still set it higher by hand. What is it currently set to ?
    Might be the Energy Saver control panel, or someone will correct me if it's something else, do you have the hard disk(s) set to spin down / sleep "whenever possible" ? It's been a while since I booted into OS9, so if the option is not there it may be a third party control panel / extension that offers the functionality. A sleeping hard disk would explain the delay of as large as 5-7 seconds.

  • Webutil_host very slow first time.

    I use a very simple comand
    WEBUTIL_HOST.NONBLOCKING(COMANDO)
    where COMANDO is
    COMANDO := 'CMD /C "'||FILE_NAME||'"' ;
    and FILE_NAME contains the name of a .xls Excell file.
    It works fine but first time I execute it it takes more than 5 minutes to open the Excell file.
    From the second on it appears after 20 secs.
    I tried to open Excel by hands before I execute the command but nothing changed.
    How can I solve that issue ?
    Tks
    Tullio

    Can you explain what you mean by this statement:
    I tried to open Excel by hands before I execute the command but nothing changedWhat do you mean by hand? Do you mean you try opening the file using excel application on client machine? If so, how fast did it load first time on client machine?

  • Kde start up is slow first time every day

    I use kdm. The time waiting for the last icon on splash screen is about 15 seconds or more (may be 1 minutes). But it only happens on first time everyday. If I reboot the machine immediately, the time is about 5 seconds, not so fast, but OK. Heavy disk I/O when waiting for boot.
    I have no daily cron tasks but default.

    I find the reason: wdc disk works bad in low temperature condition. Is it a bug or "feature"?

  • 9ias : Slow first time and fast the other times

    Hi,
    I'm facing a problem with using Reports 9ias on a HP-UX server ...
    I start a report server on the server
    I'm calling the report from forms with RUN_REPORT_OBJECT (destype=file, desformat=pdf, batch, synchronous) and then call a web.show_document.
    The first time I run the report it takes a long time ...
    The others times, even with different parameters, it appears immediately
    I've understood the Report Server is using a cache and it takes time to load reports in it.
    We have 250 reports in our application, and we would like the reports to run immediately for the end-users.
    How can I put all the reports into the cache automatically in background ?
    Is there a way to speed up the first call ?
    Thx in advance !

    iOS: Troubleshooting Messages

  • Flash file into captivate playing slow first time

    Hi.
    I am very new to flash but have been using Captivate for
    awhile now. I am trying to create an animation in flash of a book
    flipping pages. I have 9 jpg images of the various stages of the
    book flipping. When I import the first image into Flash it asks if
    I want to include the entire series of images. I said yes to this
    and now I am stuck. When I test the movie in Flash it plays slow
    once and then really fast after that.
    I saved it and imported it into a captivate project and the
    same thing is happening. It plays really slow and choppy. If I
    navigate away from the page and then come back to it, it plays
    really fast (faster than I'd like but I'd prefer that to slow)
    Any help. I searched on the Flash forum and found someone
    else with this issue but they never got a response.
    Any suggestions would be great. I am sure I am missing a step
    here but I just can't figure out what it is.
    Thanks,
    Kim

    When you say you play it, in either Captivate or Flash, do
    you mean
    locally or that you upload it somewhere and play it back
    through a web
    browser from that website location?
    If the former, then I'm not sure. If the latter, sounds like
    the images
    are Very Large and it's taking a while for them to download
    in order to
    play...but once they're downloaded and 'cached', the file
    plays quickly.
    How large are your published SWFs? What format are your
    images? What DPI?
    Erik
    Kim979 wrote:
    > When I test the movie in Flash it plays
    > slow once and then really fast after that.
    > I saved it and imported it into a captivate project and
    the same thing is
    > happening. It plays really slow and choppy. If I
    navigate away from the page
    > and then come back to it, it plays really fast
    Erik Lord
    http://www.capemedia.net
    Adobe Community Expert - eLearning
    http://www.adobe.com/communities/experts/
    http://www.awaretips.net -
    Authorware Tips!

  • 975x pue v2, MB Issue, OS slow, first time build

    Hello Everybody, 
    Ok I am having a problem like so many others I have tried searching for the answers but with no success,  :(
    now for the Specs.
    System Specs
    PSU – Thermaltake W0106RU 700W
    CPU - Intel Core 2 Quad Q6600 Kentsfield 2.4GHz LGA 775
    Motherboard - MSI 975X Platinum V.2 LGA
    Ram - OCZ Platinum Revision 2 2GB (2 x 1GB) 240-Pin DDR2 800 (PC2 6400) Dual Channel Model OCZ2P800R22GK
    Hard Drive - Western Digital Caviar SE WD2000JS 200GB 7200 RPM SATA 3.0Gb/s Hard Drive
    CD/DVD - LG 18X DVD±R DVD Burner with Light Scribe Black IDE Model GSA-H22L 
    Bios Specs
    Bios Ver. W7246IMS V 7.40
    The bios is all defaults except for the follow
    Speedstep tech – Disabled
    Boot Sequence – CD-ROM, USB-FDD, Hard Disk, Disabled
    JMB361 MODE – Disabled
    SATA Mode – AHCI
    CPU – 266MHz v.1.25
    RAM – 800MHz v2.0 – set to in Bios 4, 4, 4, 15
    Spread spectrum – Disabled
    System Setup
    IDE 1 – My CD-Rom Drive
    SATA SLOT 4 – NONE
    SATA SLOT 3 – Hard Drive
    SATA SLOT 2 – NONE
    SATA SLOT 1 – Hard Drive
    Windows Vista Installed in Slot 1
    Storage drive in Slot 3
    Only windows is installed and the Intel INF drivers on the driver disk.
    Ok now for my problem 
    The vista install took all day to install - stared at 10:00AM finished 5.00PM
    On boot up takes about 3 - 5 minutes to see desktop.
    Vista runs slower than a snail does when I click control panel it takes about a minute to show the icons.
    When I click on icon it looks like nothing happened if I click again I get the working in the background icon “arrow and circle” and if I do it one more time I get the fully busy icon “full circle” if to much is done vista stop and after a while do a restart of the system
    Programs get a not responding error while waiting, and fix themselves once info becomes available
    Think of it as running a 486 or even a 386 that’s slow and I think in some cases they faster then my system and this is happing to the whole operating system no mater what I click on.

    Quote
    Jack the Newbie
    no i did not do it " not sure how to slipstream never did it " . where can i get them and can i still load windows install them. however i did look in to the device manager and see the controller in there for AHCI " took about 5 minutes to reach
    I suggest you start from scratch:  Remove A/C power plug from PSU, hit power-on button a few times to drain capacitors and clear CMOS.
    After that, reconfigure BIOS-options.  Set Intel SATA controller to AHCI-mode and also enable Force Gen II in SATA speed settings.
    If that doesn't change anything, I would try to re-install Vista.  Somewhere at the beginning of the Vista Install procedure you will get a chance to load additional drivers.  I think it was on this screen:
    Drivers can be found here:
    http://asia.msi.com.tw/index.php?func=downloaddetail&type=driver&maincat_no=1&prod_no=267
    Look for Intel ICH7R/ICH8R SATA RAID Driver (For floppy driver) in the list.  You won't need a floppy though, when you are using Vista. An USB Flash Drive should be fine.
    After you are done setting up Vista, make sure you properly install all necessary drivers.
    In what I said before I am assuming that you are having a mere driver problem.  This could be the reason for your troubles but it doesn't have to be the only possible explanation.
    Quote
    i do have sangung ram DDR2 533MHZ 4x512
    Check your memory modules with memtest86 to make sure they are working properly:
    --> http://www.memtest.org/download/1.70/memtest86+-1.70.iso.zip
    Also try booting your system with one or two modules only.
    Keep us posted about your progress!

  • Query execution slow for the first time...

    I am new to Oracle sql.
    I have a query whose performance is very slow for the first time, but on subsequent executions its fast. When executed for the first time it is taking around 45 seconds and on subsequent executions, 600 milliseconds.
    Is there a specific reason for this to happen. I am calling this query from my java code using a prepare statement.

    Are the differences in queries solely in the where clause? If so can you parameterize the query and use bind variables instead so the only difference from one query to the next is the values of the bind variables? Using bind variables in your queries will enable the parser to reuse the already parsed queries even when the bound values differ.
    Also there may be other optimizations that can be made to either your query or the tables that it is querying against to improve your performance. To be able to improve your queries performance you need to understand how it's accessing the database.
    See Rob's thread on query optimization [When your query takes too long |http://forums.oracle.com/forums/thread.jspa?threadID=501834&start=0&tstart=0] for a primer on optimizing your query.

  • OracleConnection con = new OracleConnection() run slow in first time

    My PC has got
    Win7 64 bit; VS2010; Oracle Data access version:2.112.1.2
    When I running my ASP.NET project the next line run too slow:
    OracleConnection con = new OracleConnection();
    in first time (it is betwen 1-5 min), but sumtimes run well.
    After this line run well in my project.
    What is the problem??
    I thought of problems the antivirus program. We uninstall that, but the problem is present. :(
    What we do??
    Help me!!
    Regards Csaba

    Not normal, I have had a few iMacs and they have never done that. I imagine even with the standard option 5400rpm drive in the new 21.5" iMacs it should still boot faster. Take it back, its new get another one.

  • First time network folder access is very very slow...

    Hi,
    On my new Windows 8 box (T500 laptop) I have this annoying problem that first time network folder access is very slow, it can take 30-40 seconds from you click the drive and until it opens. This happens everytime after my laptop has been sleeping and such.
    I can even be connected via MSTSC to that same server - but still explorer first time access is painfully slow. Search index thing? 
    When the drive has been opened the first time I have a blazing fast network access with absolutely no latency at all...
    Any suggestions?
    Werner

    Hi,
    Please check how it works when connecting to other share folder.
    If the Windows Home Server has a Realtek network adapter, please also refer to the following post:
    Troubleshooting Slow Read/ Transfer Speeds for a Windows Home Server
    http://www.servethehome.com/troubleshooting-slow-read-transfer-speeds-for-a-windows-home-server/
    To monitor the network traffic, please try Network Monitor:
    Microsoft Network Monitor 3.4
    http://www.microsoft.com/en-us/download/details.aspx?id=4865
    Hope this helps.
    Thanks.
    Nicholas Li
    TechNet Community Support
    Thanks. I created 1 mapped folder for a local folder. And 1 mapped folder for my mediacenter (Windows 7). Both of these showed immediately as accessible. But the two mapped folders on my server doesn't. Perhaps this isn't a Windows 8 problem afterall...hm.
    I shall try to replicate the problem from my Windows 7 pc tonight. 
    I installed the network monitor and it shows:
    My Traffic
       System
       Unknown
       Unavailable
    Other Traffic
       Unknown
    Underneath all leafs are a bunch of IPv4 and IPv6 nodes. I guess I should apply a filter where Source or Destination equals my server? And after that - what indicates trouble?
    Werner

  • Slow the first time to run

    when I run safari after turning on my pc, it is too slow to start.. how can optimize safari to avoid this delay. any help will be appreciated. Thanks.

    Loading at startup or first time launched? Vista is doing so much already at startup I don't auto load anything extra.
    Empty cache from the Edit menu would be one thing to try. Also delete history.
    There is no way to control how large the cache file gets.
    Does it check for RSS updates or anything?

  • QuickTime launches slow but only the first time

    QuickTime is slow in Mac OS 10.7, that's been widely discussed.
    In my case, QuickTime is slow to open up a video file (MP4, AVI, WMV, etc,), but only the first time.  After I've successfully opened up the one video file, all subsequent video files open up quickly, even after quitting QuickTime.
    However, after a restart it's the same old situation again.
    Is QuickTime installing something, then removing it when the computer shuts down?

    QuickTime is slow in Mac OS 10.7, that's been widely discussed.
    In my case, QuickTime is slow to open up a video file (MP4, AVI, WMV, etc,), but only the first time.  After I've successfully opened up the one video file, all subsequent video files open up quickly, even after quitting QuickTime.
    However, after a restart it's the same old situation again.
    Is QuickTime installing something, then removing it when the computer shuts down?

Maybe you are looking for

  • How can I wipe out Windows completely?

    Hi all, Since my attempt yesterday to have a go at Windows 8 was a bit of a flop due to bad drivers, I erased the Bootcamp partition with Disk Utility and merged it back to the main one, and went on using my Mac as per usual. But this morning when I

  • Since LION update problem with iphone syncronisation

    Since the LION update on our macbook we have problems with the iphone syncronisation, reset the iphone has not solve the problem - what ist the mistake?

  • Adobe Photoshop Album Starter - Unlock Code

    Hello, I have the Adobe Photoshop Album Starter Edition 3.1. I´ve made the registration but i don´t receive the unlock code to continue using the program. All my photos are closed there. Can you help me, please? Thank you

  • Calling one Report from another Report in oracle 10g(Urgent)

    Hi All, Can anyone let me know how to make hyperlink to call another report. I am trying SRW.SET_HYPERLINK('/reports/rwservlet?&report=rep059_v31.rdf&il&destype=cache&desformat=pdf'); But i am getting message 'make sure the path or internet address i

  • Cannot Open An Instantiate Application in Guided Procedures

    Hi, I an new to Guided Procedures and SAP NW CE. I have created a composite application following a tutorial example from the SAP Press book "The Developers Guide to the SAP NetWeaver Composition Environment" which is based on a project management pr