| Prev | Next | Previous Chapter | End of Chapter | Contents | Glossary | Index | Comments | (1 out of 4)

Chapter 10

Maximizing Performance


Describes specific techniques for maximizing performance in an application in these areas: declarations, data representation, procedural processing, knowledge bases, and statements.

Introduction
How to Measure Performance
Guidelines for Maximizing Performance
Declarations
Make Type Declarations as Specific as Possible
Use Local Variable Assignment Statements Wisely
Use Stability Declarations
Data Representation
Use Arrays for Fast Direct Access and Data Storage
Use List for Fast Manipulation of Elements
Use Indexed Attributes when Referencing by Attribute Value
Use Variables Only When Necessary
Try to Avoid Time-Based History Specifications
Do Not Transfer to Workspace Unless Necessary
Procedural Processing
Use Inlining for Procedure Calls
Minimize "On Error" Statements
Use "Do in Parallel" to Interact with External Processes
Minimize Thread Interruption
Use System Procedures
Use Procedures Over Methods for Performance-Sensitive Code
Knowledge Bases
Consider Issues of Scalability
Separate Animation from Performance-Sensitive Code
Hide Tables and Attribute Displays
Minimize the Use of Displays
Avoid Scanned Rules and Polling Procedures
Disable Rule Highlighting
Use Scheduled Drawing
Statements
Minimize Conclude Statements
Avoid "Change the Text of" Expressions
Avoid Existence and Type Checking
Beware of Statements that Cause Implicit Iteration
Be Careful with List Iterations
Use Referencing Based on Relations in Performance-Sensitive Code
Test Symbolic Equality with "=" Not "is"
| Prev | Next | Previous Chapter | End of Chapter | Contents | Glossary | Index | Comments | (1 out of 4)

Copyright © 1997 Gensym Corporation, Inc.