Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

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

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

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

>Solution :

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

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading