Managing Stylus Studio Performance

Stylus Studio uses the TEMP directory to store temporary files such as the translation in UNICODE of the current XML or XSLT document. File systems are usually quite fast when handling files that are in the range of a few hundred megabytes. Stylus Studio performance should be smooth and quick when the TEMP windows environment variable points to a location where

  • There is a minimum of 1 gigabyte of free space.
  • The host disk is reasonably fast.

Stylus Studio is regularly tested against files that are up to 120 MB. How well your installation of Stylus Studio can create, open, and manipulate such large files, or even larger files, depends on

  • Available physical memory
  • Dimension of the page file
  • Current load of the machine

Troubleshooting Performance

Table 10, Performance Symptoms summarizes performance symptoms you might experience and where to find information on addressing them.

Symptom
See
XML editing is slow
Errors or crashes during XSLT processing
Stylus Studio is slow to start
Table 10. Performance Symptoms

Changing the Schema Refresh Interval

As you edit an XML document, Stylus Studio displays a pop-up menu that lists the elements and element attributes you can create. Stylus Studio retrieves this information from the document's schema. The frequency with which Stylus Studio retrieves this information can affect XML editing performance. The default refresh interval is 10 seconds.

If XML editing performance is slow, increase the refresh interval that Stylus Studio uses to refresh the schema information.

To change the refresh interval:
1. From the Stylus Studio menu bar, select Tools > Options.

The Options dialog box appears.

2. Click Module Settings > XML Editor > XML Settings.

The XML Settings page of the Options dialog box appears.

3. In the Refresh interval field, type a larger number. For information about how Stylus Studio uses this interval, see Options - Module Settings - XML Editor - XML Settings.

Tip

 

If the schema used by your document is almost never modified, you can safely increase the interval to as much as 10,000 seconds.

4. Click OK.

Checking for Modified Files

When you are working with files that Stylus Studio must open through network connections that might be slow, you might not want Stylus Studio to automatically check for modified files. Turning off this option can improve XML editing performance.

To turn off checking for modified files:
1. From the Stylus Studio menu bar, select Tools > Options.

The Options dialog box appears.

2. Click Application Settings if it is not already selected.

The Application Settings page of the Options dialog box appears.

3. If the Automatically check for externally modified files is selected, deselect it. For information about how Stylus Studio uses this setting see Options - Application Settings.

Alternatively, you can select Disable check on hidden files, which allows Stylus Studio to skip these files. Hidden files are files that are in the Stylus Studio project or the Other Documents folder but are not currently open in Stylus Studio.

4. Click OK.

See also Managing Stylus Studio Performance.

Changing the Recursion Level or Allocated Stack Size

If you are getting errors or crashes when you use the internal Stylus Studio XSLT processor, there are two options you can change to fix this.

  • The Maximum recursion level is the number of levels Stylus Studio allows you to recurse on a template invocation.
  • The Allocated stack size is the amount of memory allocated to the XSLT processing thread stack.
To change the recursion level or the allocated stack size:
1. From the Stylus Studio menu bar, select Tools > Options.

The Options dialog box appears.

2. Click Module Settings > XSLT Editor > XSLT Settings.

The XSLT Settings page of the Options dialog box appears.

3. Adjust the Maximum recursion level and the Allocated stack size as needed. For information about how Stylus Studio uses these settings see Options - Module Settings - XSLT Editor - XSLT Settings.
4. Click OK.

See also Managing Stylus Studio Performance.

Automatically Opening the Last Open Files

When you start Stylus Studio, it automatically opens any files that were open the last time you closed it. This feature can affect performance if many files were open when you last closed Stylus Studio.

If Stylus Studio is taking a long time to start, you can do one of the following:

  • Close most or all files before you shut down Stylus Studio.
  • Turn off the option that automatically opens the files that were open the last time you closed Stylus Studio.
To prevent Stylus Studio from automatically opening documents:
1. From the Stylus Studio menu bar, select Tools > Options.

The Options dialog box appears.

2. Click Application Settings if it is not already selected.

The Application Settings page of the Options dialog box appears.

3. If Open last documents automatically when Stylus Studio starts is selected, deselect it. For information about how Stylus Studio uses this settings see Options - Application Settings.
4. Click OK.
 
Free Stylus Studio XML Training: