1 Reply Latest reply on Aug 22, 2014 7:52 AM by [Eric B]

    Performance Tweaks

    [Eric B] Level 1

      Hey guys,

       

      I'm looking forward to hear about your performance tweaks to your make scripts run faster.

       

      Other than disabling the redrawing of the screen

       

      application.scriptPreference.enableRedraw = false;
      
      

       

      What else can be done?

       

      I've heard the undo history could be a cause of slow performance, is it enough to run the script inside the doScript function?

       

      application.doScript(foo(), ScriptLanguage.JAVASCRIPT, '', UndoModes.ENTIRE_SCRIPT, 'Script Name'); 
      
      

       

      Please share with us your performance tweaks.

       

      Thanks.