
499Memory-Related Techniques
MATLAB in-place optimization is a topic of continuous development. Code that is not
in-place optimized today (e.g., in-place manipulation on class object properties
1491
) may
possibly be optimized in next year’s release. For this reason, it is important to write the
code in a way that would facilitate future optimization (e.g., obj.x = 2*obj.x rather than
y = 2*obj.x).
Some in-place optimizations were added to the JIT Accelerator as early as MATLAB 6.5
R13, but MATLAB 7.3 R2006b
1492
saw a major boost. As the JIT Accelerator improves from
release to release, we should expect in-place data manipulations to be automatical ...