Skip to content

mapreduce: use simpler reduction order in some cases #45000

@nlw0

Description

@nlw0

I'm not sure this could be related to #43501 or not. I just noticed this code for the first time:

v1 = mapreduce_impl(f, op, A, ifirst, imid, blksize)

Are there any references about this implementation? When could we expect this doubly-recursive approach to be preferable to a linear traversal?

Metadata

Metadata

Assignees

No one assigned

    Labels

    foldsum, maximum, reduce, foldl, etc.performanceMust go faster

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions