是否可以使用 Deedle 的方法 "as parallel"?
Is it possible to use Deedle's methods "as parallel"?
一些 PLINQ 风格,例如:
var myTimeSeries = from kvp in myOtherTimeSeries.AsParallel() where kvp //etc.
Deedle 目前没有这些方法的并行实现。通过访问底层观察结果(作为键值对序列),您可以使用普通的 Parallel LINQ 并行化一些操作:
var myTimeSeries =
(from kvp in myOtherTimeSeries.Observations.AsParallel()
where /* and some other things */
select new KeyValuePair<...>(...)).ToSeries();
如果您想对系列做一些基本的事情,这可能会奏效,但是将结果数据转回系列的开销实际上可能超过并行化的收益。
您要并行执行哪些操作?也许我们可以在 Deedle 中包含其中一些的并行实现..
一些 PLINQ 风格,例如:
var myTimeSeries = from kvp in myOtherTimeSeries.AsParallel() where kvp //etc.
Deedle 目前没有这些方法的并行实现。通过访问底层观察结果(作为键值对序列),您可以使用普通的 Parallel LINQ 并行化一些操作:
var myTimeSeries =
(from kvp in myOtherTimeSeries.Observations.AsParallel()
where /* and some other things */
select new KeyValuePair<...>(...)).ToSeries();
如果您想对系列做一些基本的事情,这可能会奏效,但是将结果数据转回系列的开销实际上可能超过并行化的收益。
您要并行执行哪些操作?也许我们可以在 Deedle 中包含其中一些的并行实现..