in reply to Re^2: Don't treat your numbers as strings, or Interpolation is worse than you might think
in thread Don't treat your numbers as strings, or Interpolation is worse than you might think
Joost, the copy was done before the benchmark. Its the operations on the copied values that's slower. I assume perl is treating both as numbers because both have the IOK flag set which also means I think both have identical code paths. I think then, the only difference is that these values are spaced out more in memory and consume more memory. To code, I expect there should be no difference. In reality, the only thing I can guess is that it has something to do with CPU caches or any of that nonsense that I'm not sure how to reason about.
⠤⠤ ⠙⠊⠕⠞⠁⠇⠑⠧⠊
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Don't treat your numbers as strings, or Interpolation is worse than you might think
by Joost (Canon) on Jul 22, 2006 at 16:00 UTC | |
by diotalevi (Canon) on Jul 22, 2006 at 16:04 UTC |