Hello jmmitc06,
The syntax:
@smrow = @{$sm_rows[$_]};
doesn’t just perform a dereference, it also copies the contents of the right-hand side into @smrow. So you have to balance the additional overhead of making copies against the saving on dereferences within the loop.
Update: Perhaps you should investigate the Data::Alias module on . For example, you can replace @smrow = @{$sm_rows[$_]}; with:
use Data::Alias; ... alias @smrow = @{$sm_rows[$_]};
which avoids any copying of the data.
Hope that helps,
| Athanasius <°(((>< contra mundum | Iustus alius egestas vitae, eros Piratica, |
In reply to Re: Dereferencing Performance - Confused by Results
by Athanasius
in thread Dereferencing Performance - Confused by Results
by jmmitc06
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |