good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
I figure that returning a single variable ($zaza)is more efficient than returning $aob$x$y Returning $aob[$x][$y], is returning a single variable. Whether you derefence the arrays here:
Or here:
Makes no difference. However, using my for ( $x, $y, $z ) & $zaza would make some difference as lexicals are more efficient than globals. Plus you could then benefit from use strict. But your subroutine can be refactored as:
which saves a temporary variable and two, double dereferences. Personally, I think I'd code that as:
Though I'd want to verify that my logic transformation was correct. That should be appreciably more efficient than your original above. Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.
In reply to Re^5: Handling HUGE amounts of data
by BrowserUk
|
|