Making applescript run faster...

I am doing alot of Numbers scripting right now and it runs fine (with a bit of help from some of you). But some people have asked if I can make them run faster. Alot of us come from writting VBA in Excel on windoze, wehre a fairly good macro can run in under a second, doing lots of code and data manipulation. The same thing in Applescript takes ten or more times longer to run.
Not asking for specific items, I am sure that there are loads of web pages, I just don't seem to be able to find them in my searches. Do hints from system 7 apply to OSX?
Thanks alot in advance,
Jason

Hello Jason,
Some tips.
• When processing (large) list, define the list as property and use reference to that property in referencing to list's item. This will yield remarkable performance improvement (60 - 80 times faster as far as I can tell).
E.g. 1 Given -
--CODE1 (blooming slow)
set xx to {}
repeat with i from 1 to 1000
set end of xx to i
end repeat
set yy to {}
repeat with i from 1 to 1000
set end of yy to (xx's item i) * -1
end repeat
return yy
--END OF CODE1
--CODE1A (fast)
property xx : {}
property yy : {}
repeat with i from 1 to 1000
set end of my xx to i -- # note the usage of "my"
end repeat
repeat with i from 1 to 1000
set end of my yy to (my xx's item i) * -1 -- # idem.
end repeat
return my yy's contents
--END OF CODE1A
--CODE1B (fast and well-behaved)
main()
on main()
script o
property xx : {}
property yy : {}
repeat with i from 1 to 1000
set end of my xx to i -- # note the usage of "my" (or "o's")
end repeat
repeat with i from 1 to 1000
set end of my yy to (my xx's item i) * -1 -- # idem.
end repeat
return my yy's contents -- # return its contents, not reference
end script
tell o to run
end main
--END OF CODE1B
CODE1A and CODE1B are much faster than CODE1.
CODE1A will preserve the property values beyond each run while CODE1B won't.
In case you're employing 'reference to list defined as property' technique for performance' sake, CODE1B should be better because it won't leave unwanted dirty data behind.
*Note that you should return the contents of the reference not the reference itself, if need be, especially when you're using this technique in one of your handler which is called many times.
E.g., if you return "my yy" in lieu of "my yy's contents" and use "set aa to main()" in lieu of "main()" in CODE1B, the dynamically instantiated script object (o) cannot be released even after the handler exits because there remains an object (aa) which is bound to it in the outer script. If you return "my yy's contents", the script object (o) can be released peacefully.
• Reduce the number of costly inter-application communications.
E.g. 2 Given -
--CODE2 (pseudo-code)
set xx to {}
repeat with i from 1 to 100
set end of xx to value of cell i
end
--END OF CODE2
--CODE2A (pseudo-code)
set xx to value of cells 1 thru 100
--END OF CODE2A
CODE2A (if it's possible) should be faster than CODE2.
(CODE2A sends 1 event while CODE2 sends 100 events to Numbers.)
E.g. 3 Given -
--CODE3 (pseudo-code)
repeat with i from 1 to 100
set value of cell i to (value of cell i) * -1
end repeat
--END OF CODE3
--CODE3A (pseudo-code)
property xx : {}
set xx to value of cells 1 thru 100
repeat with i from 1 to 100
set value of cell i to (my xx's item i) * -1
end repeat
--END OF CODE3A
CODE3A (if it's possible) should be faster than CODE3.
(CODE3A sends 101 events while CODE3 sends 200 events to Numbers.)
• If Numbers has its own script menu, call the script from there. In most cases, script run via application's own script menu runs (much) faster than script run as stand-alone applet. Perhaps AppleEvent addressing mode is different between them, I'd guess.
• Inter-application comunication in applet is slower than that in Script Editor. There's a way to improve applet's performance by using 'run script' command in applet.
Something like the following template, which is designed to preserve any properties in your main code (whether or not it is terminated by error).
*Note that this template swallows any error thrown in your main code. So it's not good for developing and/or debugging your code.
--APPLET TEMPLATE
script o
script o1
-- # place your main code here
end script
try
tell o1 to run
on error --
end try
return me
end script
set o to run script o -- to preserve the properties in o1
--END OF APPLET TEMPLATE
cf.
A relevant topic: Applet speed
http://discussions.apple.com/thread.jspa?threadID=1633798&tstart=0
Hope this may be of some help,
H
Message was edited by: Hiroto (fixed typo)

Similar Messages

  • Making Siebel Run Fast with Oracle CBO – New PPS Recommendation - optimizer

    Hi All,
    I have some good news if you are upgrading to Oracle CBO. This is a big new find that we discovered a few weeks back.
    There is a certain class of queries that run very slow with the default Siebel recommended settings. Please keep in mind that in order to properly do explain plans in 10G with Siebel SQL you need to issue the following alter session statements. Also if you are using TOAD you have to uncheck the run queries in parallel since if that option is checked a new session will be launched and your options won’t be set.
    ALTER SESSION SET OPTIMIZER_MODE = FIRST_ROWS_10 ;
    ALTER SESSION SET "_OPTIMIZER_SORTMERGE_JOIN_ENABLED" = FALSE ;
    ALTER SESSION SET "_OPTIMIZER_JOIN_SEL_SANITY_CHECK" = TRUE;
    ALTER SESSION SET "_HASH_JOIN_ENABLED" = FALSE;
    The key new find is that the Oracle recommendation of setting optimizer_index_cost_adj = 1 is wrong! Our new recommendation is to set this parameter to 10.
    Here are some more details. This is not a silver bullet for all your Oracle performance tuning issues. Remember it is best to tune specific things that are slow from an end users perspective. In fact that is how we discovered this issue and its solution.
    There is one specific class of queries that this setting will fix. You can issue alter session statements to see the difference in your explain plans. Here is how you will know the query:
    •     Where clause on an intersection table and index that exists that would find just one row. This is the index we want Oracle to use.
    •     Order by on BC base table and another index exists that would satisfy the order by. We don’t want to use this index since millions of rows would be accessed.
    •     Explain plan shows the index for the order by is used instead of the index for the where clause that would have found a single row.
    Here is the actual statement we encountered that lead to our discovery.
    WHERE
    T8.PR_HELD_POSTN_ID = T2.PAR_ROW_ID (+) AND
    T2.BU_ID = T5.ROW_ID (+) AND
    T7.ROW_ID = T4.PAR_ROW_ID AND
    T7.ROW_ID = T8.PAR_ROW_ID AND
    T7.ROW_ID = T3.PAR_ROW_ID AND
    T7.ROW_ID = T6.PAR_ROW_ID (+) AND
    T8.PR_RESP_ID = T1.ROW_ID (+) AND
    (T8.EMP_FLG = 'Y') AND
    (T3.LOGIN = 'UATUSER')
    ORDER BY
    T8.LAST_NAME, T8.FST_NAME
    In addition at OOW this week we heard that an Oracle RAC expert presented Siebel on RAC and recommended setting this parameter back to its default of 100. We also talked with a very senior DBA colleague who made the same discovery over a year ago and is running with is parameter set to 25.
    I can tell you that for us any setting from 1-9 gave the bad access path. 10 fixes the issue.
    This find is so important that we wanted to get this out to the Siebel community ASAP.
    Robert Ponder
    Lead Architect and Director
    Ponder Pro Serve
    cell: 770.490.2767
    fax: 770.412.8259
    email: [email protected]
    web: www.ponderproserve.com

    Hi All,
    I know it is bad to reply to your own posts but this one is too good. Here is another example of this that all of us have.
    With oica = 1 the m1 index is used and this runs a long time. With oica = 10 m6 is used and that clearly is the index Oracle wants to use since it matches the where clause exactly.
    This is from the basic select we all run as part of Server Tables Clean Up. I am even including the alter session statements so you can see the drastic improvement yourself.
    ALTER SESSION SET optimizer_mode = FIRST_ROWS_10;
    ALTER SESSION SET "_OPTIMIZER_SORTMERGE_JOIN_ENABLED" = FALSE;
    ALTER SESSION SET "_OPTIMIZER_JOIN_SEL_SANITY_CHECK" = TRUE;
    ALTER SESSION SET HASH_JOIN_ENABLED = FALSE;          -- "_HASH_JOIN_ENABLED" in 10G
    ALTER SESSION SET OPTIMIZER_INDEX_COST_ADJ = 1; -- then change this to 10 and run EP again.     
    SELECT
    T1.CONFLICT_ID,
    T1.LAST_UPD,
    T1.CREATED,
    T1.LAST_UPD_BY,
    T1.CREATED_BY,
    T1.MODIFICATION_NUM,
    T1.ROW_ID,
    T1.ACTION_ID
    FROM
    SIEBEL.S_SRM_REQUEST T1
    WHERE
    ((T1.STATUS IN ( 'SUCCESS' ) OR T1.STATUS IN ( 'EXPIRED' ) OR T1.STATUS IN ( 'COMPLETE' ))
         AND T1.TGT_DELETE_TS <= TO_DATE('11/20/2007 16:26:27','MM/DD/YYYY HH24:MI:SS'))
    ***** SQL Statement Execute Time for SQL Cursor with ID 10A53620: 48.333 seconds *****

  • Help Making Program Run Faster

    Hi there,
      I am an electrical technologsit student working on our final project.  I am trying to figure out how to make LabView read our I/Os faster.  They seem to only be reading them about once every 2 seconds. I have attached a copy of our code.  Thanks.

    This code is beyond repair, maybe you want to start from scratch.
    Many of CPU burning loops that suck all power out of the CPU, some with literally tons of property nodes that write the same property over and over again, millions of times per second. A property only needs to be written when the value changes!
    All UI loops need a wait.
    Emergency stop will not work due to dataflow problems.
    Almost endless sequences, many in duplicates.
    Full of FOR loops with N=1. They can all be deleted without change in result.
    All these small while loops in the sequences make no sense at all.
    Duplicate indicator names (image: why are there two indicators with the same name: "Station ID"? This is very dangerous because you use a local variable. There is no way to tell the parent of the local by looking at the code if they have the same name!)
    Race conditions! (Image: Why do you write to a terminal and then read from a local?? Most likely, the local gets read before the terminal is written, thus you have a race condition and potentially unpredictable results. Delete the local and just branch from the wire going to the terminal).
    Your diagram is way too big (~30 monitor screens!!). With proper coding habits (state machine!), all this code should fit easily on one screen. try it!
    Message Edited by altenbach on 04-01-2009 05:41 PM
    LabVIEW Champion . Do more with less code and in less time .
    Attachments:
    duplicates&race.png ‏16 KB

  • My mac is runing slowly and the spinning wheel is on more often. How do i get it to run faster?

    My iMac is running more slowly than usual, with the spinning wheel coming on more often and interrupting my work. Is anyone able to assist me in making it run faster, as it was before?
    Thank you.

    First, back up all data immediately, as your boot drive might be failing.
    Take these steps when you notice the problem.
    Step 1
    Launch the Activity Monitor 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 Activity Monitor in the page that opens.
    Select the CPU tab of the Activity Monitor window.
    Select All Processes from the menu in the toolbar, if not already selected.
    Click the heading of the % CPU column in the process table to sort the entries by CPU usage. You may have to click it twice to get the highest value at the top. What is it, and what is the process? Also post the values for % User, % System, and % Idle at the bottom of the window.
    Select the System Memory tab. What values are shown in the bottom part of the window for Page outs and Swap used?
    Next, select the Disk Activity tab. Post the approximate values shown for Reads in/sec and Writes out/sec (not Reads in and Writes out.)
    Step 2
    You must be logged in as an administrator to carry out this step.
    Launch the Console application in the same way as above. Make sure the title of the Console window is All Messages. If it isn't, select All Messages from the SYSTEM LOG QUERIES menu on the left.
    Post the 50 or so most recent messages in the log — the text, please, not a screenshot.
    When posting a log extract, be selective. Don't post more than is requested.
    PLEASE DO NOT INDISCRIMINATELY DUMP THOUSANDS OF LINES FROM THE LOG INTO A MESSAGE. If you do that, I will not respond.
    Important: Some personal information, such as your name, may appear in the log. Edit it out before posting.

  • How can I make my program run faster ? (changing colour indicators quicker)

    Hi everyone, I have a program with 100 indicator colour backgrounds that change according to 100 temperatures. A case structure (with 100 cases) sets the background colours one after the other and runs in a while loop with no timing (as fast as possible). The temperatures are loaded up from an array that is initialized at the beginning of the program. The idea is to have an overall view of the change of temperatures (just by looking at the change of colours). Everything works fine except that it doesn’t run fast enough... The change of colours is not smooth at all ... you can really see the increments. It works fine with 20 temperatures for instance. 1) Would anybody have a solution to improve this? I was wondering if Labview perhaps actualises all of the values each time one changes (just like with the excel cells: an option that you can desactivate and make things run quicker when you use a macro) which would make a big loss of time....  
    There is no data saving this is just a post treatment program. So My my program isn't doing anything else.
     2) I have attached a screen print of a problem a faced when making up the VI I attached. Why can’t I wire directly to the Index Array that is in the For Loop in my VI… I had to go throw a shift register to make up the example. When going back to my original program I couldn’t use the index array a second time (screen shot). Thanks a lot for any help, Regards, User  
    Solved!
    Go to Solution.
    Attachments:
    Forum question.vi ‏13 KB
    forum.JPG ‏50 KB

    Here's a possible solution:
    Ton
    Message Edited by TCPlomp on 11-03-2010 11:16 AM
    Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
    Nederlandse LabVIEW user groep www.lvug.nl
    My LabVIEW Ideas
    LabVIEW, programming like it should be!
    Attachments:
    Forum question.png ‏23 KB

  • What can I do if script runs faster than network?

    I've written an inter-application script that moves from InDesign, where it starts in AppleScript, to Photoshop, where the AppleScript runs a JavaScript to perform various tasks.
    It runs beautifully on my laptop at home where I do my development. Yesterday, using myself as guinea pig, I tried it in the office.
    On about the third run, I was horrified to see the ExtendScript Toolkit pop up with an error message (about as welcome as seeing an AppleScript inviting the user to open the Script Editor and fix a script).
    The error message was that app.bringToFront(); was not a valid function.
    This was true in InDesign, which has a different activation function, and I realised that even though my AppleScript had called for Photoshop to activate I was still in InDesign.
    The JavaScript app.bringToFront had been called as well because I had enclosed my code in the Tranberry template.
    So I pressed the stop button on ExtendScript, went back to InDesign and ran the script again. This time it worked as usual.
    Occasionally on our network we spend some time beachball-watching as some communication goes on in the background. So I imagine that the time the error was thrown was on one of those network slowdowns.
    The switch from InDesign to Photoshop did not happen fast enough, but the script ran on and issued a Photoshop JavaScript command while I was still in InDesign.
    In AppleScript such unfortunate communication with users can be avoided using "try... on error" blocks.
    Would there be any error-handling equivalent in JavaScript which would enable me to avoid them being thrown into ExtendScript Toolbox and would give them a friendly message apologising, explaining what had happened and inviting them to try again?

    Also AppleScript has a default timeout of 60 seconds before it wants to execute its next command. If in you case the opening and processing of the image in JavaScript takes any longer than this wrap your call out to Photoshop in a timeout block thus extending the alloted time to whatever you think may be suitable? Like so:
    tell application "Adobe InDesign CS2"
    activate
    tell active document
    set This_Image to image 1 of item 1 of rectangle 1
    set Image_Path to file path of item link of (item 1 of This_Image) as alias
    my Call_Photoshop(Image_Path)
    delay 1 -- same as sleep(1000);
    update item link of (item 1 of This_Image)
    end tell
    end tell
    on Call_Photoshop(Image_Path)
    with timeout of 180 seconds
    tell application "Adobe Photoshop CS2"
    activate
    set display dialogs to never
    open Image_Path
    set ID_Image to the current document
    tell ID_Image
    -- do my stuff
    close with saving
    end tell
    end tell
    end timeout
    end Call_Photoshop

  • Can a script run faster?

    I've written a script that uses Adobe Soundbooth to compile and manipulate audio clips. Generating an 8 minute track via the script, however, takes about 5+ minutes. (Soundbooth must import and manipulate the files 1 by 1). Furthermore, during this time I must not touch the computer as to not interfere with the script's progress.
    Adobe Soundbooth does not have Applescript support so there are many “tells” for “system events” etc. I’m wondering if I got Apple’s Soundtrack Pro, which does have an Applescript dictionary, the script could run faster? Or perhaps it could at least run in the background to free up the computer for other uses while it’s running?
    I’m an Applescript newbie so I'm pretty clueless. I’m thrilled just to have written this first script!
    Thank you so much for your help.

    Normally yes, although you can use use a " ignoring application responses" block to tell your script to not wait for a reply from an application.
    e.g.
    tell application "Finder"
    ignoring application responses
    duplicate theFile to folder Desktop
    end ignoring
    end tell
    Normally the script would pause while it waits for the Finder to complete the duplication of the file, but in this script the script would just continue on without waiting.
    Of course this can be risky. In the case of the above script, if I added a line to try to do something with the file on the desktop, that line will fail if the script executes it before the Finder has finished copying. Ignoring can be a nice way of having multiple applications working in parallel, but it's then up to the script to check that the tasks have completed. You should also bear in mind that errors may not be picked-up as they normally would if the script waited for confirmation.

  • Making LR3 go faster

    I have been so frustrated with the speed of LR3 and have been trying to find ways of making it go faster. After a lot of playing around there are two recommendations that I have:
    1)     If working with raw files (particularly large ones) switch back to the 2003 profile for general editing and only use the 2010 version when you specifically need it. This makes an enormous difference - more like version 2.7
    2)     I noticed that my graphics card uses the Microsoft’s WDDM driver. I have just updated this to the latest NVIDIA driver and find about a 20% increase in performance +  the user interface is not as jerky.
    I have tried Window 7 64 bit but have not noticed any significant improvements in performance.
    Also I have noticed that ram usage does not go above 1.7GB  under any circumstances with LR3 (no other programs running) also the hard disk light only flashes intermittently so I guess resources are not an issue and that its purely processor grunt that is required.

    Thanks for the information... will try with the 2003 profile.
    Jim

  • Ram upgrade to 2GB - fan running faster

    I have just upgraded my intel mac mini from 512 MB to 2 GB using a kingston upgrade kit (KTA-MB667K2/2G).
    The system is performing a lot better but there is an annoying "trouble": when 2 GB are installed the fan is running more fast and more often then with 512MB.
    During my tests, I have see that while using OS X the system is able to regulate the speed, it goes from very slow to very fast but it moves to fast more often then before and the system is definetly making more noise.
    The bigger problem happens when booting using windows XP: when 2 GB of RAM are installed the fan is always running at top speed or near to top speed.
    That is not happening while using the original 512 MB.
    I have tried to reset the SMC by using the apple istructions here:
    http://docs.info.apple.com/article.html?artnum=303446
    but it didn't make any difference.
    I have double checked all wires,I have switched from 512MB to 2 GB and from 2 GB to 512MB three times(!) but nothing has changed:
    - when using 512MB fan runs slow;
    - when using 2 GB fan is still able to change speed but is running fast more often.
    Further more, to test, I have also left disconnected the fan speed cable in the front side, and in such way the fun starts at max speed and runs at fast speed all the time. So it is not a trouble with such connection.
    Is that normal this behavior?
    Does anybody have noticed any fan speed difference after RAM upgrade?
    About BootCamp and XP running fan at max speed, could be that reinstall them could solve the "always on" fan trouble with 2 GB?
    Thanks a lot for any help.

    I have some updates about the problem.
    I was thinking that it was a my fault about some missing setup needed when installing more ram to mac mini.
    So, today, I have moved to a local apple center and I have asked them to install the RAM for me... they do, and it happens the same thing: the fun was running very fast quite often under OS X and was always fast under bootcamp-XP.
    I have asked them why this happens and if that was normal, but they have no other mac mini with such amount of ram and they never see it before. They suggest me to test it for a week and eventually to give them the mac for a day to make some hardware tests.
    Later, back into my office, the noise was too high and too annoying so I have called again apple to explain the situation.
    They told me that they have no reports about similar problems, that it should not make more noise when adding RAM. They suggest me to try remove and reinstall better the RAMs or to try different RAMs (I am using kingston kit KTA-MB667K2/2G).
    So I have also phoned to kingston support, and they say that it is a strange bahavior, that they don't have reports about that too. They are now investigating the problem and they let me know something in next days.
    They also put to my attention the fact that the computer is able to see and work well with the 2GB memory, so the memory is working correctly. They think this is something related to apple hardware/firmware and could be that apple should fix it in next realases.
    Unfortunatly, all this new infos and all the time lost for a "simple" memory upgrade didn't solve my troubles and I still cannot use the mac like I need.
    So I have continued my tests by changing the kensington Dimms with other 2 GB dimms by Nanya technologies that were installed on my centrino duo notebook.
    Mac mini was able to see and work well with them too, now the fun speed is a little bit slowly then using kingston ones but still more fast than with 512MB.
    Bootcamp-XP is still not usable due to high fan speed and the high noise. OS X seems to control better the fan speed but it goes high there too for any little thing you do.
    So I have made one more test suggested by kingston:
    I have started mac mini while only one kingston dimm were inside.
    In this way the mac mini was making some less noise that using the two nanya dimms, but it was still to high.
    The last test I made was to check the cpu temperature with different amounts of RAM and results were interesting.
    Using OS X with 512MB, the cpu temperature is about 33 C while iddle; if I try to start parallels desktop with guest windows XP, temperature goes up to 40 C and the fan is still running at quite low levels.
    Instead, while 1 GB of RAM was installed, cpu iddle temperature was 35 C and starting parallels desktop will result in temperature levels till 50 C.
    So there was a difference of about 10 C.
    While doing these test I have left the mac mini open, so once stopped, I was able to quickly feel the RAM temperature with my finger and it was quite hot.
    I didn't try temperature with both 2GB dimms, but I belive it will be surely more high.
    So what I am thinking now is that probably apple is aware about higher temperature inside when using more RAM, so the bios starts the mac mini with the fun running faster because it detects the 2 GB memory.
    OS X is able to control someway the fun so it is not always running fast (but quite often) while using boot camp with XP becomes impossible due to the fan always at max speed.
    I don't think apple's rams could work at lower temperature than kingston ones, so the dubt now is that things are correct in this way.. so intel mac mini with 1/2GB could be a shame due to high level of fan noise... or... my mac mini has something wrong.
    Is anybody here with a mac mini and 2 GB of RAM?
    Anybody could make some test about that?
    Thanks a lot for any help

  • How can I clean all the junk files from my iMac so that it can run faster?

    How can I clean all the junk files from my iMac so that it can run faster? Its been slowing down ever since I started using it.

    Before doing anything, we might be able to help with your iMac issues here.
    Please download, install and run Etrecheck.
    http://www.etresoft.com/etrecheck
    Copy/paste its report here in another reply thread so that we have a complete profile of your Mac's hardware and installed software.

  • Hello , please am having a problem with my iphone 5 , the battery runs out quickly , also if i turn on 3G it will run faster , 15 minutes and the iphone battery will be out , and my final problem is that is "no service " appears a lot can you help ?

    Hello , please am having a problem with my iphone 5 , the battery runs out quickly ,another problem also if i turn on 3G it will run faster , 15 minutes and the iphone battery will be out . My final problem is that  "no service " appears a lot  especially when opening wifi or 3G , can you help ?

    Your battery is running quickly because your cellular data connection is weak.
    Is your phone carrier a supported carrier:   Wireless carrier support and features for iPhone in the United States and Canada - Apple Support
    For your no service issues:  If you see No Service in the status bar of your iPhone or iPad - Apple Support

  • FAQ: How do I make Photoshop run faster, or How do I increase performance?

    Why doesn't Photoshop run faster?
    There are many factors that contribute to the responsiveness of Photoshop. From hardware to software, there a nearly an infinite number of combinations that can boost or hinder Photoshop as it tries to work. Considering factors like how much RAM you have only begins to scratch the surface. Then you have to look at how fast the RAM is and how fast the motherboard will be in supporting it. A computer can only run as fast as its slowest components. Additionally, the hardware resources must be split between all of the running applications. And while you may only be running a web browser at the same time as Photoshop, what about all of the applications running in the background? Security software such as antivirus remains hidden, operating behind the scenes, but it still takes up CPU cycles and RAM. And what about the files you are working with? What are their pixel dimensions? File size on disk? Number of layers, smart objects, styles, and adjustments?
    To start, though, you must make sure you meet or exceed the minimum system requirements:
    Tech specs
    What can I do to make Photoshop run more efficiently?
    There are many factors to take into consideration and may steps that can be taken. Here are a list of resources that go into great detail.
    Optimize performance | Photoshop CS4, CS5, CS6
    How to tune Photoshop CS6 for peak performance
    Photoshop CS6: The Need for Speed
    What about Photoshop taking advantage of the power of my video card?
    With each new release of Photoshop, it will take more advantage of you GPU (Graphic Processing Unit), which can process display information much faster than your CPU. You video card also has its own separate RAM (known as VRAM) for storing this information. However, not all video cards are equal, even if they have the same amount of VRAM. There are different display processing technologies that all video cards do not have access to. These include technologies like OpenGL, OpenCL, and Shader Model. And these technologies have different versions that your video card may or may not have.
    For more information on Photoshop's use of GPU, please review:
    Photoshop CS6 GPU FAQ
    FAQ: What features use the GPU and how do I troubleshoot GPU issues?
    What other performance boosts has Photoshop gained recently?
    While Photoshop tends to gain overall performance upgrades by cleaning up the code to make things run more smoothly with each release, there are a couple new technologies that Photoshop has taken advantage of:
    Adobe Mercury Graphics Engine
    64-bit OS benefits, limitations | Photoshop CS4, CS5, CS6

    Good day!
    Please read this:
    Optimize performance | Photoshop CS4, CS5, CS6, CC
    If you have follow-up questions please read this (specifically »Supply pertinent information for quicker answers«):
    http://forums.adobe.com/docs/DOC-2325
    Regards,
    Pfaffenbichler
    (edited)

  • What are the symptons of macbook pro hard drive not running fast enough

    what are the symptons of the hard drive not running fast enough

    Physically the drive will be as fast as any other of its class, and if not then it's experiencing a mechanical issue that should prompt a warning or two in the system, especially if you use a drive management tool like Disk Utility that checks the drive's built-in "S.M.A.R.T." diagnostics.
    As for "logical speed," if there are bad blocks on the drive where sectors cannot be read or written to because of a breakdown of the storage medium, then this can result in a program or the entire system crashing or hanging (generally the latter is the case), where it usually pauses for a number of seconds at a time. This is usually accompanied by messages that state "I/O Error" or other similar warning in the OS X Console (in the Applications > Utilities folder).
    Beyond this, drive formatting errors such as might happen after a crash or power outage can result in similar hang-like behavior, though this is usually not as distinct of a hanging behavior as is seen with bad blocks.
    Finally, if the drive is simply full of files or highly fragmented (not as much of a problem in OS X, but it can happen), then this can reduce access time for reading and writing files, and prevent the system from optimizing the use of RAM, which can result in overall slowdowns. Heavy drive use can also cause similar bottlenecks, but this is ususally only an intermittent issue during a time when you are performing a heavy file transfer or copying process, or other task that occupies access to the drive's index and formatting (e.g., if you check it for errors with Disk Utility, then you may see the system pause or slow down during the check).

  • What are the ways to make Query run fast?

    Hi Experts,
    When a query runs slow, we generally go for creating an aggregate. My doubt is - what other things can be done to make a query run faster before creating an aggregate? What is the thumb rule to be carried out for creating an aggregate?
    Regards,
    Shreeem

    Hi Shreem,
    If you keep Query simple not complicate it with runtime calculations , it would be smooth. However as per business requirements we will have to go for it anyways mostly.
    regarding aggregates:
    Please do not use the standard proposal , it will give you hundreds based on std. rules , which consumes lots of space and adds up to load times. If you have users already using the Query and you are planning to tune it  then go for the statistics tables:
    1.RSDDSTAT_OLAP    find the query with long runtimes  get the Stepuid
    2. RSDDSTAT_DM
    3. RSDDSTATAGGRDEF  - use the stepuid above to see which aggregate is necessary for which cube.
    Another way to check ; check the users as in 1 to find the highest runtime users and find the last used bookmarks by user thru RSZWBOOKMARK for this query and check if the time matches and create the aggregates as in 3 above.
    You can also Use Transaction RSRT > execute & debug  (display stats ) - to create generic aggregates to support navigations for New queries and later refine as above.
    Hope it helps .
    Thnks
    Ram

  • How to tune a oracle sql query to make it run faster ...

    Hi Guys,
    I am very new to this tuning of sql queries. It is taking a lot of time to run a query and give the output. I have a tool called TOAD[ Tool for oracle application development ] and i ran a query in that tool. Its showing that the query is taking 7sec to get its output. I donno the exact procedure what to follow in order to tune that query. What are these actually like : explain plan, sqltrace, tkprof and how to use these to tune the query. I want my query to run faster like in msec.
    Help Appreciated.
    Thanks

    http://download-east.oracle.com/docs/cd/B10501_01/server.920/a96533/toc.htm
    http://download-east.oracle.com/docs/cd/B10501_01/server.920/a96533/sqltrace.htm#1018

Maybe you are looking for

  • My iPad mini often fails to recieve push notifications from apps such as twitter and Facebook

    My ipad mini doesnt seem to get facebook and twitter notifications, even though if I open the app, they are there to see. How can I fix this?

  • Curve 9300 3G Sudden rapid battery drain w upgrade to version 6.0 - solution

    Issue :  Curve 3G works perfeclty fine running BBOS 5.0 and an upgrade suddenly results in very poor batterylife Check: use  CPU discovery to see if the required Blackberry Phone application reports signficant CPU use (say 5 hours or more) that is ob

  • Design View issue

    I've imported an older Flex 3 project into Flash Builder 4 Beta 2 and have the 'Use Flex 3 compatibility mode' is turned on. All is fine until I select 'MX Only' as the Component Set. Switching from 'MX + Spark' causes the Design View to become compl

  • MBP to Vizio HDTV

    I am having an issue trying to hook up my MBP to my Vizio e470vle hdtv via mini display port to hdmi. I've read many dicussions on this topic but it seems that when someone finds the answer then they fall off the face of the planet. Can someone pleas

  • Passing Parameter to a form

    I am trying to create a link from my report to a form, this form is based on a procedure that brings up a detailed report. I tried to create a link from the wizard that would pass the parameter from the report to the form. My problem is that the link