在Unison分布式软件包中选择模式的含义和语义是什么?

发布于 2025-02-07 02:50:03 字数 273 浏览 3 评论 0原文

我搜索了文档,但可能错过了唯一类型模式=并行|讨论了顺序。特别是我试图在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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

睡美人的小仙女 2025-02-14 02:50:03

是的,是的。某些操作(例如降低)将检查模式,并使用该操作来决定是否在处理树中的节点时是否使用并行性。

另请参见本文讨论了控制并行性的粒度

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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文