Faq Improve performance with PLS Toolbx and Solo
How can I improve performance with PLS_Toolbox and or Solo?
There are several areas where performance and be improved.
See the toolbox performance page for a general measure of expected performance.
NOTE: We follow best practices for code performance in Matlab such as vectorization, preallocation, and file I/O.
- Use a 64bit operating system.
- Use as much RAM as possible.
- Use SSD (solid state drive) hard drive.
- Follow The Mathworks guidelines for hardware:
- Try a different version of Matlab. There were big changes to Matlab after 2014a that impacted graphics performance. If you have access to 2014a try using it. Otherwise try using the latest version of Matlab you can get you hands on.
- Close unused programs.
- Close unused PLS_Toolbox/Solo windows.
- Perform preprocessing separately.
- Use memory saving steps found here.
Graphics will benefit from all
- Be sure your drivers are up to date.
- Try changing your renderer:
- Down-sample the data. These tools can be used:
The solution below is a version specific to older versions of PLS_Toolbox on the Mac platform (roughly 2008-2014):
Some combinations of PLS_Toolbox and Matlab can experience performance issues. These issues can be the result of a combination of factors involving both PLS_Toolbox and or Matlab. We recommend one or more of the following:
- Use the latest version of PLS_Toolbox. In some cases we've been able fix problems associated with Mac performance.
- Try changing the Java Heap Size from the Matlab → Preferences → Java Heap Memory menu item. Select the largest amount available (e.g., 256MB).
- For Matlab versions 2011a and newer, disable Screen Menus via the java.opts file. Save all of your work then from the Matlab Command window enter:
- then add the following line:
- save the file and restart Matlab.
- Try using a different version of Matlab. Depending on the version of hardware and PLS_Toolbox, some [older] versions of Matlab may work better than others. Newer versions (2011a-2012a) seem to require disabling of screen menus and increased Heap size (steps 2 and 3). In general we recommend the newest version of Matlab available.
- Hide the model cache. Sometimes the java tree component seems to slow things down. Hiding the cache when not in use may help. From the Analysis Tools menu select View Cache → Hide Cache Viewer.
- Set javaopts to use Quartz rendering (via the java opts as above).
- Restart Matlab often (daily). This is probably the most effective way to keep performance from dropping.
The Mathworks has stated to us in response to service requests (FEB 2012):
"Currently, MATLAB graphics performance can be better under Windows than Mac. The Win API supports "immediate mode" drawing, and the "deferred mode" on OS X limits the raw performance vs. Windows. Also Intel has not made available for OS X a version of their compiler which supports PGO."
Still having problems? Please contact our helpdesk at firstname.lastname@example.org