Skip to content

Partition is really slow #26

@MasonProtter

Description

@MasonProtter

I'm not really sure what it's doing that makes it so slow, but it's real bad:

using Transducers

julia> let v = rand(10000)
           @btime foldl(right, Iterators.partition($v, 100))
           @btime foldxl(right, $v |> Partition(100))
       end;
  63.269 ns (1 allocation: 48 bytes)
  13.608 ms (159299 allocations: 5.47 MiB)

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