Programmer Guide > Tips for Efficient Programming
  

Tips for Efficient Programming
Techniques for writing efficient programs in PV-WAVE are identical to those in other computer languages, with the addition of the following simple guidelines:
*Use array operations rather than loops wherever possible. Try to avoid loops with high repetition counts.
*Use PV-WAVE system functions and procedures wherever possible.
*Access array data in machine-address order.
Attention must be also be given to algorithm complexity and efficiency, as this is usually the greatest determinant of resources used.
 
note
In this chapter, we give the result of timing various examples. Such timings are influenced by many factors and may not be the same for your machine. However, all timings were made on the same machine under the same conditions. Therefore, the exact times may differ, but the timings given for the various examples can be used to evaluate the relative efficiency of the examples given.

Version 2017.0
Copyright © 2017, Rogue Wave Software, Inc. All Rights Reserved.