5 Replies Latest reply: Apr 22, 2012 10:28 PM by X423424X
Joe Felice Level 2 Level 2 (150 points)

Okay, not sure why this happens and I've been wondering about this for a LONG LONG time, but why is it that applications seem to take forever to launch the first time you launch them after booting up? If you quit the app and at some point relaunch it, then it almost opens instantly. However, if you shut down or restart the computer at some point and then launch the app again, it takes ages to launch again, but only the first time. This behaviour happens with both Apple and third party software.


I have checked all the usual suspects: hard drive space (only 52% used), hard drive hardware (passes diagnostic scanning), RAM (I have 8GB), desktop (it's not cluttered and contains no folders), disk permissions (verified and repaired), software (always updated with latest versions), widgets (don't have many installed), wallpapers (never use animated wallpapers), login items (hardly any), PRAM & SMC (I've reset these). So, basically, I think I've done everything except reformat the drive and reinstall OS X.


My system specs are as follows:


  Model Name: MacBook Pro

  Model Identifier: MacBookPro5,1

  Processor Name: Intel Core 2 Duo

  Processor Speed: 2.53 GHz

  Number Of Processors: 1

  Total Number Of Cores: 2

  L2 Cache: 6 MB

  Memory: 8 GB

  Bus Speed: 1.07 GHz

  Boot ROM Version: MBP51.007E.B06

  SMC Version (system): 1.33f8

  Macintosh HD  Capacity: 999.86 GB (999,860,912,128 bytes)

  Macintosh HD  Available: 472.71 GB (472,705,077,248 bytes)



So, as far as I can tell, I've got no explanation for this behaviour. It's very frustrating/annoying - but not enough for me to want to do a whole format/reinstall.


Any suggestions anyone? If not for a solution, what about an explanation as to what's happening?





  • X423424X Level 6 Level 6 (14,215 points)

    Read this:


    Using Activity Monitor to read System Memory and determine how much RAM is being used


    Particularly the description of Inactive memory.



    This information is in RAM but it is not actively being used, it was recently used.


    For example, if you've been using Mail and then quit it, the RAM that Mail was using is marked as Inactive memory. Inactive memory is available for use by another application, just like Free memory.  However, if you open Mail before its Inactive memory is used by a different application, Mail will open quicker because its Inactive memory is converted to Active memory, instead of loading it from the slower drive.

  • FrenchToast Level 3 Level 3 (645 points)

    I agree: unless your purge cache memory using the "purge" command in Terminal, or a third-party conveniently named Purge, whatever memory a recently closed app has used is still preempted by it, and remains available. The same goes in Windows, when DLLs remain in active memory throughout a whole session, and sometimes clog the system to a halt. Memory management in OS X is much better, though...


    The only way not to experiment these slowdowns is to put your Mac to sleep instead of shutting it down. You can decide to hibernate it, too.


    See here: http://www.macworld.com/article/1053471/sleepmode.html

  • Joe Felice Level 2 Level 2 (150 points)

    Thanks X423424X and FrenchToast, that sheds some light on why it's so much quicker to launch after the first time, but now for the inevitable follow-up question.


    I'm now wondering why my apps take so long to launch the first time? What I mean is that while this has been the case for quite some time, it wasn't always the case, so I'm wondering what would have caused this?


    Maybe my behaviour has changed - perhaps I used to always put the MacBook to sleep rather than shut it down.




    Thanks again for your help!



  • FrenchToast Level 3 Level 3 (645 points)

    To understand the why of this relative slowliness, you must understand that no application is really self-contained, or standalone, whatever the OS. All applications rely on so-called native code to function. Basically, some libraries (graphics, mainly, but not only) that are already installed on your machine, as part of the system, or installed by some third-party software.


    On a cold boot, all this needed code has to be launched and installed in memory (physical and/or virtual) before the application core can be launched too. In your case, maybe some preference files are corrupted somewhat, or permissions need repair. You can try the following experiment: create a new standard account, give it admin rights, log in this new account and check how long it takes for your usual applications to launch. If they're quicker, then there's a problem with your main account; if it takes them the same amount of time to launch than in your other account, then you might consider adding some RAM on your machine, or free some space on your hard drive.


    Or both. Preferably both...

  • X423424X Level 6 Level 6 (14,215 points)

    I think before doing any expirementation boot from another drive or your installer dvd and run Disk Utility to repair/verify your boot drive (not repair permissions).


    Also toss in a smc reset for luck!