Can Packed Arrays Ever be Slower?
Yes. Here is an example.
If you unpack the data and then use
However, if we inline the function, the auto-compilation can work.
It is not always the case that things are so easily patched up. Some commands are incompatible with packed arrays. However, before complaining too loudly about these (we hope quite rare) cases, please take into account the whole time going into your computation. In the above example, we were not taking into account the time it took to generate the random list. Without auto-compilation and packed arrays, it takes quite a bit longer.
Converted by Mathematica May 1, 2000