<type>documentation</type>
<domain>install</domain>
<id>trouble-slow</id>
<title>Speeding up Wing</title>
<date>$Date$</date>
<version>$Revision$</version>
<product>all</product>

Wing should present a snappy, responsive user interface even on relatively slow hardware.
If Wing appears sluggish, you can diagnose the problem as follows:

**Wait for source analysis to complete**, which may be necessary just after creating a new
project, adding files to an existing project, or if many files on disk have changed or
moved. In this case, the status area in the lower left of the IDE window will indicate
that analysis is running. Wing stores the results of this process in a cache so the
problem should not reoccur often.

**Increase the source analysis cache allocation** with the `Source Analysis > Max Cache
Size <script:show-preferences-gui#prefname="pysource.max-disk-cache-size">`__ preference
if the ``Cache Directory`` in Wing's `About box <script:about-application>`__ exceeds
that size.  You may also want to press the ``Clear Cache`` button next to the preference
to rule out problems caused by a corrupted source analysis cache.

**Try disabling external change checking** by setting the `Files > Reloading > External
Check Freq <script:show-preferences-gui#prefname="cache.external-check-freq">`__
preference to ``0``.

**On a multi-core virtual machine, set processor affinity** if Wing runs slowly. This is
done with ``schedtool -a 0x1 -e ~~EXECUTABLE~~~~MAJOR_VERSION~~.~~MINOR_VERSION~~`` on
Linux (the ``schedtool`` package needs to be installed if not already present) and with
``START /AFFINITY 01 "Wing Pro" "C:\Program Files (x86)\Wing Pro
~~MAJOR_VERSION~~.~~MINOR_VERSION~~\bin\wing.exe"`` on Windows.

**In other cases, collect a profile** as follows:

* Select ``Command by Name`` from the ``Edit`` menu, type ``internal-profile-start``,
  and press ``Enter``

* Do something that is slow, or just wait for a while

* Select ``Command by Name`` again, type ``internal-profile-stop``, and press ``Enter``

The profile is written to the end of ``ide.log`` in the `Settings Directory
<ref:install/user-settings-dir>`__. This can be submitted in a bug report from the
``Help`` menu or by email to `support@wingware.com <mailto:support@wingware.com>`__.
