Skip to content

parBuffer smells wrong #23

Description

@treeowl

It looks to me as though parBuffer is supposed to spark a limited number of computations at any one time. But as far as I can tell, it actually sparks an unlimited number. In particular, I believe ret (x : xs) (y : ys) should force x.

Activity

  1. simonmar commented on Jun 2, 2018

    @simonmar
    Member

    Looks ok to me. The start function sparks the first N elements, and then as we consume each cons of the result list, ret sparks element N+1, N+2, ... etc.

  2. treeowl commented on Jun 2, 2018

    @treeowl
    ContributorAuthor

    Ah, I see! We just need to document that!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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