bbarker
bbarker

Reputation: 13098

What are the implications and semantics for choosing a mode in Unison's distributed package?

I searched through the documentation but may have missed where unique type Mode = Parallel | Sequential is discussed. In particular I'm trying to use it in Seq.fromList, which says:

Seq.fromList : Mode -> [a] -> Seq k a

...

All branches in the result tree will have the provided Mode

Is this a means of controlling nested parallelism, as seems to be indicated, or is it something else?

Upvotes: 0

Views: 41

Answers (1)

pchiusano
pchiusano

Reputation: 775

Yes, that's right. Certain operations like reduce will examine the Mode and use that to decide whether to use parallelism when processing that node in the tree.

Also see this article section discussing controlling the granularity of parallelism

Upvotes: 1

Related Questions