ContentsIndexPreviousNext

5.5.1 Tuning System Performance

The nature of Acucorp's thin client technology may make some functions expensive in terms of system performance. Certain adjustments have been made to minimize the amount of message traffic between the client and the server. For example, if a program resizes a window to be larger than the available screen space, the operation succeeds. Checking for failure is an expensive operation.

One way to improve system performance is to recompile your programs to the Version 5.2 or later object format. In older object files that use MODIFY to set control properties frequently, the thin client must return status to the runtime after each MODIFY statement that sets a property value. When you recompile, thin client sends status back to your program only if the program uses that status value.

Because the performance of some controls may be affected in a thin client environment, some control properties may need to be changed. The grid control experiences performance delays when the user clicks and drags the mouse to highlight several cells in the grid. To avoid this, the thin client does not generate the MSG-GOTO-CELL-DRAG event. This prevents you from highlighting a region of the grid during drag operations via the REGION-COLOR property.

The grid control supports a DRAG-COLOR property, which allows you to do highlighting during a drag operation. You can use this with both the thin client and with the stand-alone runtime. You replace REGION-COLOR references with DRAG-COLOR and remove any MSG-GOTO-CELL-DRAG handling. Note that REGION-COLOR is often located in the MSG-GOTO-CELL-DRAG handling code, and it will need to be moved when you change it to DRAG-COLOR. Most commonly, you can place the DRAG-COLOR reference in the code (or Screen Section) where the grid is created.

For more information about the DRAG-COLOR property, refer to the grid control description in Book 2 of the ACUCOBOL-GT documentation set.