perf(factors/engine): 重构计算引擎使用 Polars 原生并行
- 移除 Python 多进程/多线程池,消除 DataFrame 序列化开销 - 采用 BFS 分层执行策略,每层表达式通过单次 with_columns 提交 - 利用 Polars Rust 引擎实现零拷贝并行计算 - 添加死锁检测机制处理依赖环
This commit is contained in:
@@ -72,7 +72,7 @@ class TestFactorEngineEndToEnd:
|
||||
def engine(self, mock_data):
|
||||
"""提供配置好的 FactorEngine fixture。"""
|
||||
data_source = {"pro_bar": mock_data}
|
||||
return FactorEngine(data_source=data_source, max_workers=2)
|
||||
return FactorEngine(data_source=data_source)
|
||||
|
||||
def test_simple_symbol_expression(self, engine):
|
||||
"""测试简单的符号表达式。"""
|
||||
|
||||
Reference in New Issue
Block a user