Mercurial > hg > octave-lyh
changeset 9486:d85a43495faa
update coding tips
author | Jaroslav Hajek <highegg@gmail.com> |
---|---|
date | Wed, 05 Aug 2009 08:47:48 +0200 |
parents | 3cee58bf4acf |
children | 2894af292e69 |
files | doc/ChangeLog doc/interpreter/tips.txi |
diffstat | 2 files changed, 7 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/doc/ChangeLog +++ b/doc/ChangeLog @@ -1,3 +1,7 @@ +2009-08-05 Jaroslav Hajek <highegg@gmail.com> + + * interpreter/tips.txi: Update. + 2009-07-20 John W. Eaton <jwe@octave.org> * interpreter/contributors.in: Add Aleksej Saushev.
--- a/doc/interpreter/tips.txi +++ b/doc/interpreter/tips.txi @@ -110,6 +110,9 @@ @item Avoid computing costly intermediate results multiple times. Octave currently does not eliminate common subexpressions. +Also, certain internal computation results are cached for variables. +For instance, if a matrix variable is used multiple times as an index, +checking the indices (and internal conversion to integers) is only done once. @item Be aware of lazy copies (copy-on-write). When a copy of an object