Skip to content

performance of all_equal #282

Description

@RSabet

Here is a comparison of itertools::all_equal with two alternatives for a vector consisting of 5_000_000 zeroes followed by 5_000_000 ones on rust playground:

  • using itertools::all_equal: 607 msecs
  • using any: 487 msecs
  • using a simple for loop: 536 msecs

i would love if all_qual was as fast

playground

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions