在Unison分布式软件包中选择模式的含义和语义是什么?
我搜索了文档,但可能错过了唯一类型模式=并行|讨论了顺序
。特别是我试图在seq.fromlist
中使用它,其中说:
Seq.fromList : Mode -> [a] -> Seq k a
...
结果树中的所有分支都将具有提供的
模式
这是控制嵌套并行性的一种手段,或者似乎是其他东西?
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?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
是的,是的。某些操作(例如
降低
)将检查模式
,并使用该操作来决定是否在处理树中的节点时是否使用并行性。另请参见本文讨论了控制并行性的粒度
Yes, that's right. Certain operations like
reduce
will examine theMode
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