Welcome toVigges Developer Community-Open, Learning,Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
402 views
in Technique[技术] by (71.8m points)

流式处理因子计算的时候,怎么做到并行计算因子

关于因子计算 假定我要计算100个因子 每个因子耗时10毫秒 加起来就耗时1秒 这种情况怎么设计才能减少总的时间? 应用场景是接收行情、写入streamTable、计算因子、下发因子数据,怎么实现比较好?

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

可以用DolphinDB database中并行处理的高价函数,如ploop, peach, pcall等。
针对应用场景,可以每个因子做成一个函数。在message handler内部调用因子函数。


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to Vigges Developer Community for programmer and developer-Open, Learning and Share
...