next up previous
Next: Definite Clause Grammars Up: Efficiency Considerations Previous: Useful Tip 5

Useful Tip 6

Don't duplicate effort. If you are going to need to do the same, involved calculation a number of times then it is probably worth storing the result of the first calculation for later use.

Dave Stuart Robertson
Tue Jul 7 10:44:26 BST 1998