You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
a := ((1to:5000) collect: [ :i | i ]) asPMVector.
a sum. "Best of 10 runs: 568ms"
b := ((1to:25000000) collect: [ :i | i ]).
b sum. "Worst of 10 runs: 551ms"
This means that PMVector sum is at least 5,000 times slower than Collection sum.
Possible fix: Don't override sum method. Is there any specific reason to do so?
The text was updated successfully, but these errors were encountered:
Here is the comparison with array:
This means that
PMVector sum
is at least 5,000 times slower thanCollection sum
.Possible fix: Don't override
sum
method. Is there any specific reason to do so?The text was updated successfully, but these errors were encountered: