Skip to content

PMVector sum is extremely slow #125

Closed

Description

@AtharvaKhare

Here is the comparison with array:

a := ((1 to: 5000) collect: [ :i | i ]) asPMVector.
a sum. "Best of 10 runs: 568ms"

b := ((1 to: 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?

Activity

  1. SergeStinckwich commented on May 26, 2019

    @SergeStinckwich
    Member

    I try to remove PMVector>>sumand it run much faster. The tests are all green.
    I think we can remove it.

  2. added this to the 1.0 milestone on May 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions